Class BeliefPropagationGateEnterPartialOp
Provides outgoing messages for the following factors:
, given random arguments to the function.Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Gate), "EnterPartial<>", new Type[]{null, typeof(int), null, typeof(int[])})]
[FactorMethod(typeof(Gate), "EnterPartial<>", new Type[]{null, typeof(bool), null, typeof(int[])})]
[Quality(QualityBand.Stable)]
public static class BeliefPropagationGateEnterPartialOp
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, TDist, Int32[], TDist)
EP message to value.
Declaration
public static TDist ValueAverageConditional<TDist>(IList<TDist> enterPartial, Bernoulli selector, TDist value, int[] indices, TDist result)
where TDist : ICloneable, SettableToUniform, SettableTo<TDist>, SettableToWeightedSum<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TDist> | enterPartial | Incoming message from |
| Bernoulli | selector | 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_(enterPartial,selector) p(enterPartial,selector) factor(enterPartial,selector,value,indices)]/p(value).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|
| ImproperMessageException |
|
ValueAverageConditional<TDist>(IList<TDist>, Discrete, TDist, Int32[], TDist)
EP message to value.
Declaration
public static TDist ValueAverageConditional<TDist>(IList<TDist> enterPartial, Discrete selector, TDist value, int[] indices, TDist result)
where TDist : ICloneable, SettableToUniform, SettableTo<TDist>, SettableToWeightedSum<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
Parameters
| Type | Name | Description |
|---|---|---|
| IList<TDist> | enterPartial | Incoming message from |
| Discrete | selector | 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_(enterPartial,selector) p(enterPartial,selector) factor(enterPartial,selector,value,indices)]/p(value).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|
| ImproperMessageException |
|