Search Results for

    Show / Hide Table of Contents

    Class LogOp_VMP

    Provides outgoing messages for Log(Double), given random arguments to the function.

    Inheritance
    Object
    LogOp_VMP
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Microsoft.ML.Probabilistic.Factors
    Assembly: Microsoft.ML.Probabilistic.dll
    Syntax
    [FactorMethod(typeof(Math), "Log", new Type[]{typeof(double)})]
    [Quality(QualityBand.Preview)]
    public class LogOp_VMP

    Fields

    damping

    Determines the amount of damping to use on the VMP updates for D.

    Declaration
    public static double damping
    Field Value
    Type Description
    Double

    Methods

    AverageLogFactor()

    Evidence message for VMP.

    Declaration
    public static double AverageLogFactor()
    Returns
    Type Description
    Double

    Zero.

    Remarks

    The formula for the result is log(factor(log,d)). Adding up these values across all factors and variables gives the log-evidence estimate for VMP.

    DAverageLogarithm(Gaussian, Gamma, Gamma)

    VMP message to d.

    Declaration
    public static Gamma DAverageLogarithm(Gaussian log, Gamma d, Gamma to_D)
    Parameters
    Type Name Description
    Gaussian log

    Incoming message from log. Must be a proper distribution. If uniform, the result will be uniform.

    Gamma d

    Incoming message from d. Must be a proper distribution. If uniform, the result will be uniform.

    Gamma to_D

    Previous outgoing message to D.

    Returns
    Type Description
    Gamma

    The outgoing VMP message to the d argument.

    Remarks

    The outgoing message is the factor viewed as a function of d with log integrated out. The formula is sum_log p(log) factor(log,d).

    Exceptions
    Type Condition
    ImproperMessageException

    log is not a proper distribution.

    ImproperMessageException

    d is not a proper distribution.

    DAverageLogarithm(Double)

    VMP message to d.

    Declaration
    [NotSupported("VMP cannot support deterministic factors such as Log with fixed outputs")]
    public static Gaussian DAverageLogarithm(double log)
    Parameters
    Type Name Description
    Double log

    Constant value for log.

    Returns
    Type Description
    Gaussian

    The outgoing VMP message to the d argument.

    Remarks

    The outgoing message is the factor viewed as a function of d conditioned on the given values.

    DAverageLogarithm(Double, Gamma, Gamma)

    VMP message to d.

    Declaration
    public static Gamma DAverageLogarithm(double log, Gamma d, Gamma result)
    Parameters
    Type Name Description
    Double log

    Constant value for log.

    Gamma d

    Incoming message from d.

    Gamma result

    Modified to contain the outgoing message.

    Returns
    Type Description
    Gamma

    result

    Remarks

    The outgoing message is the factor viewed as a function of d conditioned on the given values.

    LogAverageLogarithm(Gaussian, Gamma, Gaussian)

    VMP message to log.

    Declaration
    public static Gaussian LogAverageLogarithm(Gaussian log, Gamma d, Gaussian result)
    Parameters
    Type Name Description
    Gaussian log

    Incoming message from log.

    Gamma d

    Incoming message from d. Must be a proper distribution. If uniform, the result will be uniform.

    Gaussian result

    Modified to contain the outgoing message.

    Returns
    Type Description
    Gaussian

    result

    Remarks

    The outgoing message is a distribution matching the moments of log as the random arguments are varied. The formula is proj[sum_(d) p(d) factor(log,d)].

    Exceptions
    Type Condition
    ImproperMessageException

    d is not a proper distribution.

    LogAverageLogarithm(Gaussian, Double, Gaussian)

    VMP message to log.

    Declaration
    public static Gaussian LogAverageLogarithm(Gaussian log, double d, Gaussian result)
    Parameters
    Type Name Description
    Gaussian log

    Incoming message from log.

    Double d

    Constant value for d.

    Gaussian result

    Modified to contain the outgoing message.

    Returns
    Type Description
    Gaussian

    result

    Remarks

    The outgoing message is the factor viewed as a function of log conditioned on the given values.

    LogAverageLogarithm(Double)

    VMP message to log.

    Declaration
    public static Gamma LogAverageLogarithm(double d)
    Parameters
    Type Name Description
    Double d

    Constant value for d.

    Returns
    Type Description
    Gamma

    The outgoing VMP message to the log argument.

    Remarks

    The outgoing message is the factor viewed as a function of log conditioned on the given values.

    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.