Class SharedVariableSet
A Set of SharedVariables that allows SetInput/InferOutput to be called on all of them at once.
Implements
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Models
Assembly: Microsoft.ML.Probabilistic.Compiler.dll
Syntax
public class SharedVariableSet : Set<ISharedVariable>, ICollection<ISharedVariable>, ICloneable, IReadOnlyCollection<ISharedVariable>, IEnumerable<ISharedVariable>, IEnumerable, ISharedVariable
Constructors
SharedVariableSet()
Constructs a set of shared variables
Declaration
public SharedVariableSet()
Properties
IsEvidenceVariable
Not supported for SharedVariableSet
Declaration
public bool IsEvidenceVariable { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Methods
GetEvidence()
Gets the evidence for this set of shared variable
Declaration
public double GetEvidence()
Returns
Type | Description |
---|---|
Double |
GetEvidenceCorrection()
Not supported for SharedVariableSet
Declaration
public double GetEvidenceCorrection()
Returns
Type | Description |
---|---|
Double |
InferOutput(IGeneratedAlgorithm, Model, Int32)
Infer the output messages, for the given model and batch number, for all shared variables in this set
Declaration
public void InferOutput(IGeneratedAlgorithm ca, Model modelNumber, int batchNumber)
Parameters
Type | Name | Description |
---|---|---|
IGeneratedAlgorithm | ca | Compiled algorithm |
Model | modelNumber | Model id |
Int32 | batchNumber | Batch number |
InferOutput(InferenceEngine, Model, Int32)
Infer the output messages, for the given model and batch number, for all shared variables in this set
Declaration
public void InferOutput(InferenceEngine engine, Model modelNumber, int batchNumber)
Parameters
Type | Name | Description |
---|---|---|
InferenceEngine | engine | Inference engine |
Model | modelNumber | Model id |
Int32 | batchNumber | Batch number |
SetInput(Model, Int32)
Set inboxes, for the given model and batch number, for all shared variables in this set
Declaration
public void SetInput(Model modelNumber, int batchNumber)
Parameters
Type | Name | Description |
---|---|---|
Model | modelNumber | Model id |
Int32 | batchNumber | Batch number |