Gibbs sampling algorithm - includes block Gibbs sampling
| C# | Visual Basic | Visual C++ |
public class GibbsSampling : AlgorithmBase, IAlgorithm, HasName
Public Class GibbsSampling _ Inherits AlgorithmBase _ Implements IAlgorithm, HasName
public ref class GibbsSampling : public AlgorithmBase, IAlgorithm, HasName
| All Members | Constructors | Methods | Properties | ||
| Icon | Member | Description |
|---|---|---|
| GibbsSampling()()() | ||
| BurnIn |
The number of samples to discard at the beginning
| |
| DefaultNumberIterations |
Default number of iterations for Gibbs sampling
(Overrides AlgorithmBase.DefaultNumberIterations.) | |
| GetAlgorithmConversionOperator(Type, IAlgorithm, Boolean, List<(Of <(Object>)>)) |
Gets the operator which converts a message to/from another algorithm
(Overrides AlgorithmBase.GetAlgorithmConversionOperator(Type, IAlgorithm, Boolean, List<(Of <(Object>)>)).) | |
| GetEvidenceMethodName(List<(Of <(Object>)>)) |
Gets the suffix for Gibbs Sampling evidence method
Evidence is not supported or supportable for Gibbs. The message
update methods are marked as unsupported so that an appropriate
error message is generated by the model compiler
(Overrides AlgorithmBase.GetEvidenceMethodName(List<(Of <(Object>)>)).) | |
| GetMessagePrototype(ChannelInfo, MessageDirection, IExpression, String) |
Get the message prototype in the specified direction
(Overrides AlgorithmBase.GetMessagePrototype(ChannelInfo, MessageDirection, IExpression, String).) | |
| GetOperatorMethodSuffix(List<(Of <(Object>)>)) |
Gets the suffix for Gibbs Sampling operator methods
(Overrides AlgorithmBase.GetOperatorMethodSuffix(List<(Of <(Object>)>)).) | |
| GetQueryTypeBinding(QueryType) |
Get the query type binding for Gibbs sampling - this is the path to the given query type
relative to the raw marginal type.
(Overrides AlgorithmBase.GetQueryTypeBinding(QueryType).) | |
| ModifyFactorAttributes(IExpression, AttributeRegistry<(Of <(Object, Object>)>)) |
Allows the algorithm to modify the attributes on a factor. For example, in Gibbs sampling
different message types are passed depending on the context. This is signalled to the MessageTransform
by attaching a MessagePath attribute to the method invoke expression for the factor.
If the factor is a 'variable' pseudo-factor (UsesEqualsDef) then all incoming variables are
Distributions. Otherwise, incoming messages will depend on the grouping
(Overrides AlgorithmBase.ModifyFactorAttributes(IExpression, AttributeRegistry<(Of <(Object, Object>)>)).) | |
| Name |
Name of the algorithm
(Overrides AlgorithmBase.Name.) | |
| SetDefaultQueryTypes(Variable) |
Set the default inference query types for a variable for this algorithm.
(Overrides AlgorithmBase.SetDefaultQueryTypes(Variable).) | |
| ShortName |
Short name of the algorithm
(Overrides AlgorithmBase.ShortName.) | |
| Thin |
Reduction factor when constructing sample and conditional lists
|
| Object | ||
| AlgorithmBase | ||
| GibbsSampling | ||