Class BeliefPropagationGateExitOp
Provides outgoing messages for Exit<T>(Boolean[], T[]), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Gate), "Exit<>", new Type[]{})]
[Quality(QualityBand.Stable)]
public static class BeliefPropagationGateExitOp
Remarks
The message operators contained in this class assume that the distribution of the variable exiting the gate can represent mixtures exactly.
Methods
ExitAverageConditional<TDist>(IList<Bernoulli>, IList<TDist>, TDist)
EP message to exit.
Declaration
public static TDist ExitAverageConditional<TDist>(IList<Bernoulli> cases, IList<TDist> values, TDist result)
where TDist : SettableTo<TDist>, SettableToWeightedSum<TDist>
Parameters
| Type | Name | Description |
|---|---|---|
| IList<Bernoulli> | cases | Incoming message from |
| IList<TDist> | values | Incoming message from |
| TDist | result | Modified to contain the outgoing message. |
Returns
| Type | Description |
|---|---|
| TDist |
|
Type Parameters
| Name | Description |
|---|---|
| TDist | The type of the distribution over the variable exiting the gate. |
Remarks
The outgoing message is a distribution matching the moments of exit as the random arguments are varied. The formula is proj[p(exit) sum_(cases,values) p(cases,values) factor(exit,cases,values)]/p(exit).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|