Search Results for

    Show / Hide Table of Contents

    Class BeliefPropagationGateEnterPartialOp

    Provides outgoing messages for the following factors:

    • EnterPartial<T>(Int32, T, Int32[])
    • EnterPartial<T>(Boolean, T, Int32[])
    , given random arguments to the function.

    Inheritance
    Object
    BeliefPropagationGateEnterPartialOp
    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), "EnterPartial<>", new Type[]{null, typeof(int), null, typeof(int[])})]
    [FactorMethod(typeof(Gate), "EnterPartial<>", new Type[]{null, typeof(bool), null, typeof(int[])})]
    [Quality(QualityBand.Stable)]
    public static class BeliefPropagationGateEnterPartialOp
    Remarks

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

    Methods

    ValueAverageConditional<TDist>(IList<TDist>, Bernoulli, TDist, Int32[], TDist)

    EP message to value.

    Declaration
    public static TDist ValueAverageConditional<TDist>(IList<TDist> enterPartial, Bernoulli selector, TDist value, int[] indices, TDist result)
        where TDist : ICloneable, SettableToUniform, SettableTo<TDist>, SettableToWeightedSum<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
    Parameters
    Type Name Description
    IList<TDist> enterPartial

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

    Bernoulli selector

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

    TDist value

    Incoming message from value.

    Int32[] indices

    Constant value for indices.

    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 entering the gate.

    Remarks

    The outgoing message is a distribution matching the moments of value as the random arguments are varied. The formula is proj[p(value) sum_(enterPartial,selector) p(enterPartial,selector) factor(enterPartial,selector,value,indices)]/p(value).

    Exceptions
    Type Condition
    ImproperMessageException

    enterPartial is not a proper distribution.

    ImproperMessageException

    selector is not a proper distribution.

    ValueAverageConditional<TDist>(IList<TDist>, Discrete, TDist, Int32[], TDist)

    EP message to value.

    Declaration
    public static TDist ValueAverageConditional<TDist>(IList<TDist> enterPartial, Discrete selector, TDist value, int[] indices, TDist result)
        where TDist : ICloneable, SettableToUniform, SettableTo<TDist>, SettableToWeightedSum<TDist>, CanGetLogAverageOf<TDist>, CanGetLogNormalizer
    Parameters
    Type Name Description
    IList<TDist> enterPartial

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

    Discrete selector

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

    TDist value

    Incoming message from value.

    Int32[] indices

    Constant value for indices.

    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 entering the gate.

    Remarks

    The outgoing message is a distribution matching the moments of value as the random arguments are varied. The formula is proj[p(value) sum_(enterPartial,selector) p(enterPartial,selector) factor(enterPartial,selector,value,indices)]/p(value).

    Exceptions
    Type Condition
    ImproperMessageException

    enterPartial is not a proper distribution.

    ImproperMessageException

    selector is not a proper distribution.

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