Class BeliefPropagationGateEnterPartialTwoOp
Provides outgoing messages for EnterPartialTwo<T>(Boolean, Boolean, T, Int32[]), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Gate), "EnterPartialTwo<>", new Type[]{})]
[Quality(QualityBand.Stable)]
public static class BeliefPropagationGateEnterPartialTwoOp
Remarks
The message operators contained in this class assume that the distribution of the variable entering the gate can represent mixtures exactly.
Methods
ValueAverageConditional<TDist>(IList<TDist>, Bernoulli, Bernoulli, TDist, Int32[], TDist)
EP message to value.
Declaration
public static TDist ValueAverageConditional<TDist>([SkipIfAllUniform] IList<TDist> enterPartialTwo, Bernoulli case0, Bernoulli case1, TDist value, int[] indices, TDist result)
where TDist : ICloneable, SettableToUniform, SettableToWeightedSum<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TDist> | enterPartialTwo | Incoming message from |
| Bernoulli | case0 | Incoming message from |
| Bernoulli | case1 | Incoming message from |
| TDist | value | Incoming message from |
| Int32[] | indices | Constant value for |
| 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 entering the gate. |
Remarks
The outgoing message is a distribution matching the moments of value as the random arguments are varied. The formula is proj[p(value) sum_(enterPartialTwo,case0,case1) p(enterPartialTwo,case0,case1) factor(enterPartialTwo,case0,case1,value,indices)]/p(value).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|