Search Results for

    Show / Hide Table of Contents

    Class CompoundDenseBinaryBpmTrainingEvidence_EP

    Inheritance
    Object
    CompoundDenseBinaryBpmTrainingEvidence_EP
    Implements
    IGeneratedAlgorithm
    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.Learners.BayesPointMachineClassifierInternal
    Assembly: Microsoft.ML.Probabilistic.Learners.Classifier.dll
    Syntax
    public class CompoundDenseBinaryBpmTrainingEvidence_EP : IGeneratedAlgorithm

    Fields

    Changed_FeatureCount_FeatureValues_InstanceCount_isDone

    True if Changed_FeatureCount_FeatureValues_InstanceCount has executed. Set this to false to force re-execution of Changed_FeatureCount_FeatureValues_InstanceCount

    Declaration
    public bool Changed_FeatureCount_FeatureValues_InstanceCount_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_FeatureValues_InstanceCount_Labels_numberOfIterations_WeightConstraints_WeightP12_isDone

    True if Changed_FeatureCount_FeatureValues_InstanceCount_Labels_numberOfIterations_WeightConstraints_WeightP12 has executed. Set this to false to force re-execution of Changed_FeatureCount_FeatureValues_InstanceCount_Labels_numberOfIterations_WeightConstraints_WeightP12

    Declaration
    public bool Changed_FeatureCount_FeatureValues_InstanceCount_Labels_numberOfIterations_WeightConstraints_WeightP12_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8_isDone

    True if Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8 has executed. Set this to false to force re-execution of Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8

    Declaration
    public bool Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8_isInitialised

    True if Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8 has performed initialisation. Set this to false to force re-execution of Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8

    Declaration
    public bool Changed_FeatureCount_FeatureValues_InstanceCount_numberOfIterationsDecreased_WeightPrecisionRateCons8_isInitialised
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_FeatureValues_InstanceCount_WeightPrecisionRateConstraints_isDone

    True if Changed_FeatureCount_FeatureValues_InstanceCount_WeightPrecisionRateConstraints has executed. Set this to false to force re-execution of Changed_FeatureCount_FeatureValues_InstanceCount_WeightPrecisionRateConstraints

    Declaration
    public bool Changed_FeatureCount_FeatureValues_InstanceCount_WeightPrecisionRateConstraints_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_InstanceCount_isDone

    True if Changed_FeatureCount_InstanceCount has executed. Set this to false to force re-execution of Changed_FeatureCount_InstanceCount

    Declaration
    public bool Changed_FeatureCount_InstanceCount_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10_isDone

    True if Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10 has executed. Set this to false to force re-execution of Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10

    Declaration
    public bool Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10_isInitialised

    True if Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10 has performed initialisation. Set this to false to force re-execution of Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10

    Declaration
    public bool Changed_FeatureCount_InstanceCount_numberOfIterationsDecreased_Init_FeatureValues_Labels_WeightConst10_isInitialised
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_isDone

    True if Changed_FeatureCount has executed. Set this to false to force re-execution of Changed_FeatureCount

    Declaration
    public bool Changed_FeatureCount_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3_isDone

    True if Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3 has executed. Set this to false to force re-execution of Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3

    Declaration
    public bool Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3_isInitialised

    True if Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3 has performed initialisation. Set this to false to force re-execution of Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3

    Declaration
    public bool Changed_FeatureCount_numberOfIterationsDecreased_Init_FeatureValues_InstanceCount_Labels_WeightConst3_isInitialised
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_WeightConstraints_isDone

    True if Changed_FeatureCount_WeightConstraints has executed. Set this to false to force re-execution of Changed_FeatureCount_WeightConstraints

    Declaration
    public bool Changed_FeatureCount_WeightConstraints_isDone
    Field Value
    Type Description
    Boolean

    Changed_FeatureCount_WeightPrecisionRateConstraints_isDone

    True if Changed_FeatureCount_WeightPrecisionRateConstraints has executed. Set this to false to force re-execution of Changed_FeatureCount_WeightPrecisionRateConstraints

    Declaration
    public bool Changed_FeatureCount_WeightPrecisionRateConstraints_isDone
    Field Value
    Type Description
    Boolean

    Changed_InstanceCount_isDone

    True if Changed_InstanceCount has executed. Set this to false to force re-execution of Changed_InstanceCount

    Declaration
    public bool Changed_InstanceCount_isDone
    Field Value
    Type Description
    Boolean

    Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9_isDone

    True if Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9 has executed. Set this to false to force re-execution of Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9

    Declaration
    public bool Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9_isDone
    Field Value
    Type Description
    Boolean

    Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9_isInitialised

    True if Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9 has performed initialisation. Set this to false to force re-execution of Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9

    Declaration
    public bool Changed_numberOfIterationsDecreased_Init_FeatureCount_FeatureValues_InstanceCount_Labels_WeightConst9_isInitialised
    Field Value
    Type Description
    Boolean

    CommonWeightPrecision_F

    Declaration
    public Gamma CommonWeightPrecision_F
    Field Value
    Type Description
    Gamma

    CommonWeightPrecision_rep_B

    Declaration
    public Gamma[] CommonWeightPrecision_rep_B
    Field Value
    Type Description
    Gamma[]

    CommonWeightPrecision_rep_B_toDef

    Buffer for ReplicateOp_Divide.Marginal<Gamma>

    Declaration
    public Gamma CommonWeightPrecision_rep_B_toDef
    Field Value
    Type Description
    Gamma

    CommonWeightPrecision_rep_F

    Declaration
    public Gamma[] CommonWeightPrecision_rep_F
    Field Value
    Type Description
    Gamma[]

    CommonWeightPrecision_rep_F_marginal

    Buffer for ReplicateOp_Divide.UsesAverageConditional<Gamma>

    Declaration
    public Gamma CommonWeightPrecision_rep_F_marginal
    Field Value
    Type Description
    Gamma

    Constant_isDone

    True if Constant has executed. Set this to false to force re-execution of Constant

    Declaration
    public bool Constant_isDone
    Field Value
    Type Description
    Boolean

    FeatureScores_B

    Declaration
    public DistributionStructArray<Gaussian, double>[] FeatureScores_B
    Field Value
    Type Description
    DistributionStructArray<Gaussian, Double>[]

    FeatureScores_F

    Declaration
    public DistributionStructArray<Gaussian, double>[] FeatureScores_F
    Field Value
    Type Description
    DistributionStructArray<Gaussian, Double>[]

    ModelSelector_marginal_F

    Message to marginal of 'ModelSelector'

    Declaration
    public Bernoulli ModelSelector_marginal_F
    Field Value
    Type Description
    Bernoulli

    ModelSelector_selector_B

    Declaration
    public Bernoulli ModelSelector_selector_B
    Field Value
    Type Description
    Bernoulli

    ModelSelector_selector_cases_0_B

    Declaration
    public Bernoulli ModelSelector_selector_cases_0_B
    Field Value
    Type Description
    Bernoulli

    ModelSelector_selector_cases_0_rep10_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep10_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep10_uses_B

    Messages from uses of 'ModelSelector_selector_cases_0_rep10'

    Declaration
    public Bernoulli[][] ModelSelector_selector_cases_0_rep10_uses_B
    Field Value
    Type Description
    Bernoulli[][]

    ModelSelector_selector_cases_0_rep15_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep15_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep2_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep2_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep2_uses_B

    Messages from uses of 'ModelSelector_selector_cases_0_rep2'

    Declaration
    public Bernoulli[][] ModelSelector_selector_cases_0_rep2_uses_B
    Field Value
    Type Description
    Bernoulli[][]

    ModelSelector_selector_cases_0_rep3_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep3_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep4_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep4_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep4_uses_B

    Messages from uses of 'ModelSelector_selector_cases_0_rep4'

    Declaration
    public Bernoulli[][] ModelSelector_selector_cases_0_rep4_uses_B
    Field Value
    Type Description
    Bernoulli[][]

    ModelSelector_selector_cases_0_rep5_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep5_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep5_uses_B

    Messages from uses of 'ModelSelector_selector_cases_0_rep5'

    Declaration
    public Bernoulli[][] ModelSelector_selector_cases_0_rep5_uses_B
    Field Value
    Type Description
    Bernoulli[][]

    ModelSelector_selector_cases_0_rep6_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep6_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep6_rep_B

    Declaration
    public Bernoulli[][] ModelSelector_selector_cases_0_rep6_rep_B
    Field Value
    Type Description
    Bernoulli[][]

    ModelSelector_selector_cases_0_rep7_B

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_rep7_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_0_rep7_uses_B

    Messages from uses of 'ModelSelector_selector_cases_0_rep7'

    Declaration
    public Bernoulli[][] ModelSelector_selector_cases_0_rep7_uses_B
    Field Value
    Type Description
    Bernoulli[][]

    ModelSelector_selector_cases_0_uses_B

    Messages from uses of 'ModelSelector_selector_cases_0'

    Declaration
    public Bernoulli[] ModelSelector_selector_cases_0_uses_B
    Field Value
    Type Description
    Bernoulli[]

    ModelSelector_selector_cases_B

    Declaration
    public DistributionStructArray<Bernoulli, bool> ModelSelector_selector_cases_B
    Field Value
    Type Description
    DistributionStructArray<Bernoulli, Boolean>

    NoisyScore_F

    Declaration
    public Gaussian[] NoisyScore_F
    Field Value
    Type Description
    Gaussian[]

    NoisyScore_use_B

    Message from use of 'NoisyScore'

    Declaration
    public Gaussian[] NoisyScore_use_B
    Field Value
    Type Description
    Gaussian[]

    Score_B

    Declaration
    public Gaussian[] Score_B
    Field Value
    Type Description
    Gaussian[]

    Score_F

    Declaration
    public Gaussian[] Score_F
    Field Value
    Type Description
    Gaussian[]

    SharedWeightPrecisionRates_B_FeatureRange__Q

    Buffer for GammaFromShapeAndRateOp_Laplace.LogEvidenceRatio

    Declaration
    public Gamma[] SharedWeightPrecisionRates_B_FeatureRange__Q
    Field Value
    Type Description
    Gamma[]

    SharedWeightPrecisionRates_F

    Declaration
    public DistributionStructArray<Gamma, double> SharedWeightPrecisionRates_F
    Field Value
    Type Description
    DistributionStructArray<Gamma, Double>

    SharedWeightPrecisionRates_use_B

    Message from use of 'SharedWeightPrecisionRates'

    Declaration
    public DistributionStructArray<Gamma, double> SharedWeightPrecisionRates_use_B
    Field Value
    Type Description
    DistributionStructArray<Gamma, Double>

    SharedWeightPrecisionRates_uses_B

    Messages from uses of 'SharedWeightPrecisionRates_use'

    Declaration
    public Gamma[][] SharedWeightPrecisionRates_uses_B
    Field Value
    Type Description
    Gamma[][]

    SharedWeightPrecisionRates_uses_F

    Messages to uses of 'SharedWeightPrecisionRates_use'

    Declaration
    public Gamma[][] SharedWeightPrecisionRates_uses_F
    Field Value
    Type Description
    Gamma[][]

    vBernoulli4

    The constant 'vBernoulli4'

    Declaration
    public Bernoulli vBernoulli4
    Field Value
    Type Description
    Bernoulli

    WeightPrecisionRateRates_F_reduced

    Declaration
    public Gamma WeightPrecisionRateRates_F_reduced
    Field Value
    Type Description
    Gamma

    WeightPrecisionRates_depth0_F

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisionRates_depth0_F
    Field Value
    Type Description
    DistributionStructArray<Gamma, Double>

    WeightPrecisionRates_marginal_F

    Message to marginal of 'WeightPrecisionRates'

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisionRates_marginal_F
    Field Value
    Type Description
    DistributionStructArray<Gamma, Double>

    WeightPrecisionRates_rep_B

    Declaration
    public Gamma[][] WeightPrecisionRates_rep_B
    Field Value
    Type Description
    Gamma[][]

    WeightPrecisionRates_rep_B_toDef

    Buffer for ReplicateOp_Divide.Marginal<Gamma>

    Declaration
    public Gamma[] WeightPrecisionRates_rep_B_toDef
    Field Value
    Type Description
    Gamma[]

    WeightPrecisionRates_rep_F

    Declaration
    public Gamma[][] WeightPrecisionRates_rep_F
    Field Value
    Type Description
    Gamma[][]

    WeightPrecisionRates_rep_F_marginal

    Buffer for ReplicateOp_Divide.UsesAverageConditional<Gamma>

    Declaration
    public Gamma[] WeightPrecisionRates_rep_F_marginal
    Field Value
    Type Description
    Gamma[]

    WeightPrecisionRates_use_B

    Message from use of 'WeightPrecisionRates'

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisionRates_use_B
    Field Value
    Type Description
    DistributionStructArray<Gamma, Double>

    WeightPrecisionRates_uses_B

    Messages from uses of 'WeightPrecisionRates_use'

    Declaration
    public Gamma[][] WeightPrecisionRates_uses_B
    Field Value
    Type Description
    Gamma[][]

    WeightPrecisionRates_uses_F

    Messages to uses of 'WeightPrecisionRates_use'

    Declaration
    public Gamma[][] WeightPrecisionRates_uses_F
    Field Value
    Type Description
    Gamma[][]

    WeightPrecisions_B

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisions_B
    Field Value
    Type Description
    DistributionStructArray<Gamma, Double>

    WeightPrecisions_B_FeatureRange__Q

    Buffer for GammaRatioOp_Laplace.LogEvidenceRatio

    Declaration
    public Gamma[] WeightPrecisions_B_FeatureRange__Q
    Field Value
    Type Description
    Gamma[]

    WeightPrecisions_F

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisions_F
    Field Value
    Type Description
    DistributionStructArray<Gamma, Double>

    Weights_depth0_F

    Declaration
    public DistributionStructArray<Gaussian, double> Weights_depth0_F
    Field Value
    Type Description
    DistributionStructArray<Gaussian, Double>

    Weights_F

    Declaration
    public DistributionStructArray<Gaussian, double> Weights_F
    Field Value
    Type Description
    DistributionStructArray<Gaussian, Double>

    Weights_marginal_F

    Message to marginal of 'Weights'

    Declaration
    public DistributionStructArray<Gaussian, double> Weights_marginal_F
    Field Value
    Type Description
    DistributionStructArray<Gaussian, Double>

    Weights_rep_B

    Declaration
    public Gaussian[][] Weights_rep_B
    Field Value
    Type Description
    Gaussian[][]

    Weights_rep_B_toDef

    Buffer for ReplicateOp_Divide.Marginal<Gaussian>

    Declaration
    public Gaussian[] Weights_rep_B_toDef
    Field Value
    Type Description
    Gaussian[]

    Weights_rep_F

    Declaration
    public Gaussian[][] Weights_rep_F
    Field Value
    Type Description
    Gaussian[][]

    Weights_rep_F_marginal

    Buffer for ReplicateOp_Divide.UsesAverageConditional<Gaussian>

    Declaration
    public Gaussian[] Weights_rep_F_marginal
    Field Value
    Type Description
    Gaussian[]

    Weights_use_B

    Message from use of 'Weights'

    Declaration
    public DistributionStructArray<Gaussian, double> Weights_use_B
    Field Value
    Type Description
    DistributionStructArray<Gaussian, Double>

    Weights_uses_B

    Messages from uses of 'Weights_use'

    Declaration
    public Gaussian[][] Weights_uses_B
    Field Value
    Type Description
    Gaussian[][]

    Weights_uses_F

    Messages to uses of 'Weights_use'

    Declaration
    public Gaussian[][] Weights_uses_F
    Field Value
    Type Description
    Gaussian[][]

    Properties

    FeatureCount

    The externally-specified value of 'FeatureCount'

    Declaration
    public int FeatureCount { get; set; }
    Property Value
    Type Description
    Int32

    FeatureValues

    The externally-specified value of 'FeatureValues'

    Declaration
    public double[][] FeatureValues { get; set; }
    Property Value
    Type Description
    Double[][]

    InstanceCount

    The externally-specified value of 'InstanceCount'

    Declaration
    public int InstanceCount { get; set; }
    Property Value
    Type Description
    Int32

    Labels

    The externally-specified value of 'Labels'

    Declaration
    public bool[] Labels { get; set; }
    Property Value
    Type Description
    Boolean[]

    NumberOfIterationsDone

    The number of iterations done from the initial state

    Declaration
    public int NumberOfIterationsDone { get; }
    Property Value
    Type Description
    Int32

    WeightConstraints

    The externally-specified value of 'WeightConstraints'

    Declaration
    public DistributionStructArray<Gaussian, double> WeightConstraints { get; set; }
    Property Value
    Type Description
    DistributionStructArray<Gaussian, Double>

    WeightPrecisionRateConstraints

    The externally-specified value of 'WeightPrecisionRateConstraints'

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisionRateConstraints { get; set; }
    Property Value
    Type Description
    DistributionStructArray<Gamma, Double>

    Methods

    Execute(Int32)

    Update all marginals, by iterating message-passing the given number of times

    Declaration
    public void Execute(int numberOfIterations)
    Parameters
    Type Name Description
    Int32 numberOfIterations

    The total number of iterations that should be executed for the current set of observed values. If this is more than the number already done, only the extra iterations are done. If this is less than the number already done, message-passing is restarted from the beginning. Changing the observed values resets the iteration count to 0.

    GetObservedValue(String)

    Get the observed value of the specified variable.

    Declaration
    public object GetObservedValue(string variableName)
    Parameters
    Type Name Description
    String variableName

    Variable name

    Returns
    Type Description
    Object

    Marginal(String)

    Get the marginal distribution (computed up to this point) of a variable

    Declaration
    public object Marginal(string variableName)
    Parameters
    Type Name Description
    String variableName

    Name of the variable in the generated code

    Returns
    Type Description
    Object

    The marginal distribution computed up to this point

    Remarks

    Execute, Update, or Reset must be called first to set the value of the marginal.

    Marginal(String, String)

    Get the query-specific marginal distribution of a variable.

    Declaration
    public object Marginal(string variableName, string query)
    Parameters
    Type Name Description
    String variableName

    Name of the variable in the generated code

    String query

    QueryType name. For example, GibbsSampling answers 'Marginal', 'Samples', and 'Conditionals' queries

    Returns
    Type Description
    Object
    Remarks

    Execute, Update, or Reset must be called first to set the value of the marginal.

    Marginal<T>(String)

    Get the marginal distribution (computed up to this point) of a variable, converted to type T

    Declaration
    public T Marginal<T>(string variableName)
    Parameters
    Type Name Description
    String variableName

    Name of the variable in the generated code

    Returns
    Type Description
    T

    The marginal distribution computed up to this point

    Type Parameters
    Name Description
    T

    The distribution type.

    Remarks

    Execute, Update, or Reset must be called first to set the value of the marginal.

    Marginal<T>(String, String)

    Get the query-specific marginal distribution of a variable, converted to type T

    Declaration
    public T Marginal<T>(string variableName, string query)
    Parameters
    Type Name Description
    String variableName

    Name of the variable in the generated code

    String query

    QueryType name. For example, GibbsSampling answers 'Marginal', 'Samples', and 'Conditionals' queries

    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    The distribution type.

    Remarks

    Execute, Update, or Reset must be called first to set the value of the marginal.

    ModelSelectorMarginal()

    Returns the marginal distribution for 'ModelSelector' given by the current state of the message passing algorithm.

    Declaration
    public Bernoulli ModelSelectorMarginal()
    Returns
    Type Description
    Bernoulli

    The marginal distribution

    Reset()

    Reset all messages to their initial values. Sets NumberOfIterationsDone to 0.

    Declaration
    public void Reset()

    SetObservedValue(String, Object)

    Set the observed value of the specified variable.

    Declaration
    public void SetObservedValue(string variableName, object value)
    Parameters
    Type Name Description
    String variableName

    Variable name

    Object value

    Observed value

    Update(Int32)

    Update all marginals, by iterating message-passing an additional number of times

    Declaration
    public void Update(int additionalIterations)
    Parameters
    Type Name Description
    Int32 additionalIterations

    The number of iterations that should be executed, starting from the current message state. Messages are not reset, even if observed values have changed.

    WeightPrecisionRatesMarginal()

    Returns the marginal distribution for 'WeightPrecisionRates' given by the current state of the message passing algorithm.

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisionRatesMarginal()
    Returns
    Type Description
    DistributionStructArray<Gamma, Double>

    The marginal distribution

    WeightPrecisionRatesMarginalDividedByPrior()

    Returns the output message (the posterior divided by the prior) for 'WeightPrecisionRates' given by the current state of the message passing algorithm.

    Declaration
    public DistributionStructArray<Gamma, double> WeightPrecisionRatesMarginalDividedByPrior()
    Returns
    Type Description
    DistributionStructArray<Gamma, Double>

    The output message (the posterior divided by the prior)

    WeightsMarginal()

    Returns the marginal distribution for 'Weights' given by the current state of the message passing algorithm.

    Declaration
    public DistributionStructArray<Gaussian, double> WeightsMarginal()
    Returns
    Type Description
    DistributionStructArray<Gaussian, Double>

    The marginal distribution

    WeightsMarginalDividedByPrior()

    Returns the output message (the posterior divided by the prior) for 'Weights' given by the current state of the message passing algorithm.

    Declaration
    public DistributionStructArray<Gaussian, double> WeightsMarginalDividedByPrior()
    Returns
    Type Description
    DistributionStructArray<Gaussian, Double>

    The output message (the posterior divided by the prior)

    Events

    ProgressChanged

    Event that is fired when the progress of inference changes, typically at the end of one iteration of the inference algorithm.

    Declaration
    public event EventHandler<ProgressChangedEventArgs> ProgressChanged
    Event Type
    Type Description
    EventHandler<ProgressChangedEventArgs>

    Implements

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