Class VariablePointOp_Mean<T>
Provides outgoing messages for VariablePoint<T>(T, out T), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Clone), "VariablePoint<>", new Type[]{}, Default = false)]
[Quality(QualityBand.Preview)]
public class VariablePointOp_Mean<T> : VariablePointOpBase
Type Parameters
Name | Description |
---|---|
T |
Methods
MarginalAverageConditional<TDist>(TDist, TDist, TDist)
EP message to marginal
.
Declaration
[SkipIfAllUniform]
public static TDist MarginalAverageConditional<TDist>(TDist use, TDist def, TDist result)
where TDist : SettableToProduct<TDist>, HasPoint<T>, CanGetMean<T>
Parameters
Type | Name | Description |
---|---|---|
TDist | use | Incoming message from |
TDist | def | Incoming message from |
TDist | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
TDist |
|
Type Parameters
Name | Description |
---|---|
TDist | The type of the marginal of the variable. |
Remarks
The outgoing message is a distribution matching the moments of marginal
as the random arguments are varied. The formula is proj[p(marginal) sum_(use,def) p(use,def) factor(use,def,marginal)]/p(marginal)
.
MarginalAverageLogarithm<TDist>(TDist, TDist, TDist)
VMP message to marginal
.
Declaration
[SkipIfAllUniform]
public static TDist MarginalAverageLogarithm<TDist>(TDist use, TDist def, TDist result)
where TDist : SettableToProduct<TDist>, HasPoint<T>, CanGetMean<T>
Parameters
Type | Name | Description |
---|---|---|
TDist | use | Incoming message from |
TDist | def | Incoming message from |
TDist | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
TDist |
|
Type Parameters
Name | Description |
---|---|
TDist | The type of the marginal of the variable. |
Remarks
The outgoing message is the exponential of the average log-factor value, where the average is over all arguments except marginal
. The formula is exp(sum_(use,def) p(use,def) log(factor(use,def,marginal)))
.