Infer.NET Documentation
ModifyFactorAttributes Method (factorExpression, factorAttributes)
Infer.NET code documentationMicrosoftResearch.InferGibbsSamplingModifyFactorAttributes(IExpression, AttributeRegistry<(Of <(Object, Object>)>))
Microsoft Research, Cambridge
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
Declaration Syntax
C#Visual BasicVisual C++
public override void ModifyFactorAttributes(
	IExpression factorExpression,
	AttributeRegistry<Object, Object> factorAttributes
)
Public Overrides Sub ModifyFactorAttributes ( _
	factorExpression As IExpression, _
	factorAttributes As AttributeRegistry(Of Object, Object) _
)
public:
virtual void ModifyFactorAttributes(
	IExpression^ factorExpression, 
	AttributeRegistry<Object^, Object^>^ factorAttributes
) override
Parameters
factorExpression (IExpression)
The factor expression
factorAttributes (AttributeRegistry<(Of <(Object, Object>)>))
Attribute registry

Assembly: Infer.Compiler (Module: Infer.Compiler) Version: 2.3.41111.0 (2.3.41111.0)