Search Results for

    Show / Hide Table of Contents

    Class Model

    A model identifier used to manage SharedVariables.

    Inheritance
    Object
    Model
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Namespace: Microsoft.ML.Probabilistic.Models
    Assembly: Microsoft.ML.Probabilistic.Compiler.dll
    Syntax
    public class Model

    Constructors

    Model(Int32)

    Create a new model identifier to which SharedVariables can be registered.

    Declaration
    public Model(int batchCount)
    Parameters
    Type Name Description
    Int32 batchCount

    The number of data batches that will be processed with this model.

    Fields

    BatchCount

    The number of data batches that will be processed with this model.

    Declaration
    public int BatchCount
    Field Value
    Type Description
    Int32

    Name

    Name of the model

    Declaration
    public string Name
    Field Value
    Type Description
    String

    SharedVariables

    The set of SharedVariables registered with this model.

    Declaration
    public SharedVariableSet SharedVariables
    Field Value
    Type Description
    SharedVariableSet

    Methods

    GetEvidenceForAll(Model[])

    Gets evidence for all the specified models

    Declaration
    public static double GetEvidenceForAll(params Model[] models)
    Parameters
    Type Name Description
    Model[] models

    An array of models

    Returns
    Type Description
    Double

    InferShared(IGeneratedAlgorithm, Int32)

    Update all the SharedVariables registered with this model.

    Declaration
    public void InferShared(IGeneratedAlgorithm engine, int batchNumber)
    Parameters
    Type Name Description
    IGeneratedAlgorithm engine
    Int32 batchNumber

    A number from 0 to BatchCount-1

    InferShared(InferenceEngine, Int32)

    Update all the SharedVariables registered with this model.

    Declaration
    public void InferShared(InferenceEngine engine, int batchNumber)
    Parameters
    Type Name Description
    InferenceEngine engine
    Int32 batchNumber

    A number from 0 to BatchCount-1

    Named(String)

    Inline method for naming a shared variable model

    Declaration
    public Model Named(string name)
    Parameters
    Type Name Description
    String name
    Returns
    Type Description
    Model

    ToString()

    ToString override

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.