SharedVariable DomainType  ClassInfer.NET Documentation
Microsoft Research, Cambridge
Abstract base class for shared variables. Shared variables allow a model to be split into submodels in which variables are shared. Each submodel can have many copies.
Inheritance Hierarchy

OnlineSystem Object
  MicrosoftResearch.Infer.Models SharedVariable DomainType 

Namespace: MicrosoftResearch.Infer.Models
Assembly: Infer.Compiler (in Infer.Compiler.dll) Version: 2.5.30417.0 (2.5.30417.0)
Syntax

public abstract class SharedVariable<DomainType> : ISharedVariable
Type Parameters

DomainType
Domian type of the variable
Remarks

A typical use of this is for large data sets where the likelihood parts of the model cannot all fit in memory. The solution is to divide the data into chunks (or 'batches'), and specify a single submodel which includes the likelihood factors and variables for one chunk, along with the shared parameters; the number of copies of the submodel is set to the number of chunks. In a related pattern, there are one or more additional submodels for defining the parameter variables.
See Also