Search Results for

    Show / Hide Table of Contents

    Class BeliefPropagationGateExitOp

    Provides outgoing messages for Exit<T>(Boolean[], T[]), given random arguments to the function.

    Inheritance
    Object
    BeliefPropagationGateExitOp
    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(Gate), "Exit<>", new Type[]{})]
    [Quality(QualityBand.Stable)]
    public static class BeliefPropagationGateExitOp
    Remarks

    The message operators contained in this class assume that the distribution of the variable exiting the gate can represent mixtures exactly.

    Methods

    ExitAverageConditional<TDist>(IList<Bernoulli>, IList<TDist>, TDist)

    EP message to exit.

    Declaration
    public static TDist ExitAverageConditional<TDist>(IList<Bernoulli> cases, IList<TDist> values, TDist result)
        where TDist : SettableTo<TDist>, SettableToWeightedSum<TDist>
    Parameters
    Type Name Description
    IList<Bernoulli> cases

    Incoming message from cases.

    IList<TDist> values

    Incoming message from values. Must be a proper distribution. If any element is uniform, the result will be uniform.

    TDist result

    Modified to contain the outgoing message.

    Returns
    Type Description
    TDist

    result

    Type Parameters
    Name Description
    TDist

    The type of the distribution over the variable exiting the gate.

    Remarks

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

    Exceptions
    Type Condition
    ImproperMessageException

    values is not a proper distribution.

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