Class LogisticOp_JJ96
Provides outgoing messages for Logistic(Double), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(MMath), "Logistic", new Type[]{typeof(double)})]
[Quality(QualityBand.Preview)]
public class LogisticOp_JJ96
Remarks
Uses the Jaakkola and Jordan (1996) bound.
Methods
AverageLogFactor(Beta, Gaussian, Beta)
Evidence message for VMP.
Declaration
public static double AverageLogFactor(Beta logistic, Gaussian x, Beta to_logistic)
Parameters
Type | Name | Description |
---|---|---|
Beta | logistic | Incoming message from |
Gaussian | x | Incoming message from |
Beta | to_logistic | Previous outgoing message to |
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.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
LogisticAverageLogarithm(Gaussian)
VMP message to logistic
.
Declaration
public static Beta LogisticAverageLogarithm(Gaussian x)
Parameters
Type | Name | Description |
---|---|---|
Gaussian | x | Incoming message from |
Returns
Type | Description |
---|---|
Beta | The outgoing VMP message to the |
Remarks
The outgoing message is a distribution matching the moments of logistic
as the random arguments are varied. The formula is proj[sum_(x) p(x) factor(logistic,x)]
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
XAverageLogarithm(Beta, Gaussian, Gaussian)
VMP message to x
.
Declaration
public static Gaussian XAverageLogarithm(Beta logistic, Gaussian x, Gaussian result)
Parameters
Type | Name | Description |
---|---|---|
Beta | logistic | Incoming message from |
Gaussian | x | Incoming message from |
Gaussian | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
Gaussian |
|
Remarks
The outgoing message is the factor viewed as a function of x
with logistic
integrated out. The formula is sum_logistic p(logistic) factor(logistic,x)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|
ImproperMessageException |
|