Class GaussianRatioVmpOp
Provides outgoing messages for Ratio(Double, Double), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Factor), "Ratio", new Type[]{typeof(double), typeof(double)})]
[Quality(QualityBand.Mature)]
public static class GaussianRatioVmpOp
Methods
AAverageLogarithm(Gaussian)
VMP message to a
.
Declaration
[NotSupported("Variational Message Passing does not support a Ratio factor with fixed output or random denominator.")]
public static Gaussian AAverageLogarithm(Gaussian B)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | B | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing VMP message to the |
Remarks
The outgoing message is the exponential of the average log-factor value, where the average is over all arguments except a
. The formula is exp(sum_(b) p(b) log(factor(ratio,a,b)))
.
AAverageLogarithm(Gaussian, Double)
VMP message to a
.
Declaration
public static Gaussian AAverageLogarithm(Gaussian ratio, double B)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | ratio | Incoming message from |
Double | B | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing VMP message to the |
Remarks
The outgoing message is the factor viewed as a function of a
with ratio
integrated out. The formula is sum_ratio p(ratio) factor(ratio,a,b)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
AAverageLogarithm(Double, Double)
VMP message to a
.
Declaration
public static Gaussian AAverageLogarithm(double ratio, double B)
Parameters
Type | Name | Description |
---|---|---|
Double | ratio | Constant value for |
Double | B | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing VMP message to the |
Remarks
The outgoing message is the factor viewed as a function of a
conditioned on the given values.
AverageLogFactor(Gaussian)
Evidence message for VMP.
Declaration
public static double AverageLogFactor(Gaussian ratio)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | ratio | Incoming message from |
Returns
Type | Description |
---|---|
Double | Zero. |
Remarks
In Variational Message Passing, the evidence contribution of a deterministic factor is zero. Adding up these values across all factors and variables gives the log-evidence estimate for VMP.
BAverageLogarithm()
VMP message to b
.
Declaration
[NotSupported("Variational Message Passing does not support a Ratio factor with fixed output or random denominator.")]
public static Gaussian BAverageLogarithm()
Returns
Type | Description |
---|---|
Gaussian | The outgoing VMP message to the |
Remarks
The outgoing message is the factor viewed as a function of b
conditioned on the given values.
RatioAverageLogarithm(Gaussian)
VMP message to ratio
.
Declaration
[NotSupported("Variational Message Passing does not support a Ratio factor with fixed output or random denominator.")]
public static Gaussian RatioAverageLogarithm(Gaussian B)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | B | Incoming message from |
Returns
Type | Description |
---|---|
Gaussian | The outgoing VMP message to the |
Remarks
The outgoing message is a distribution matching the moments of ratio
as the random arguments are varied. The formula is proj[sum_(b) p(b) factor(ratio,a,b)]
.
RatioAverageLogarithm(Gaussian, Double)
VMP message to ratio
.
Declaration
public static Gaussian RatioAverageLogarithm(Gaussian A, double B)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | A | Incoming message from |
Double | B | Constant value for |
Returns
Type | Description |
---|---|
Gaussian | The outgoing VMP message to the |
Remarks
The outgoing message is a distribution matching the moments of ratio
as the random arguments are varied. The formula is proj[sum_(a) p(a) factor(ratio,a,b)]
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|