Class DoublePlusEvidenceOp
Provides outgoing messages for Plus(Double, Double), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Factor), "Plus", new Type[]{typeof(double), typeof(double)})]
[Quality(QualityBand.Stable)]
public static class DoublePlusEvidenceOp
Methods
LogEvidenceRatio(Gaussian)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(Gaussian Sum)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | Sum | Incoming message from |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(sum_(Sum) p(Sum) factor(Sum,A,B) / sum_Sum p(Sum) messageTo(Sum))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.
LogEvidenceRatio(Double, Gaussian, Gaussian)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(double Sum, Gaussian a, Gaussian to_a)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Gaussian | a | Incoming message from |
Gaussian | to_a | Outgoing message to |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(sum_(A) p(A) factor(Sum,A,B))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.
LogEvidenceRatio(Double, Double, Gaussian, Gaussian)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(double Sum, double a, Gaussian b, Gaussian to_b)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Double | a | Constant value for |
Gaussian | b | Incoming message from |
Gaussian | to_b | Outgoing message to |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(sum_(B) p(B) factor(Sum,A,B))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.
LogEvidenceRatio(Double, Double, Double)
Evidence message for EP.
Declaration
public static double LogEvidenceRatio(double Sum, double a, double b)
Parameters
Type | Name | Description |
---|---|---|
Double | Sum | Constant value for |
Double | a | Constant value for |
Double | b | Constant value for |
Returns
Type | Description |
---|---|
Double | Logarithm of the factor's contribution the EP model evidence. |
Remarks
The formula for the result is log(factor(Sum,A,B))
. Adding up these values across all factors and variables gives the log-evidence estimate for EP.