Class SingleOp
Provides outgoing messages for Single(String), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Factor), "Single", new Type[]{})]
[Quality(QualityBand.Experimental)]
public static class SingleOp
Methods
CharacterAverageConditional(StringDistribution)
EP message to character
.
Declaration
public static DiscreteChar CharacterAverageConditional(StringDistribution str)
Parameters
Type | Name | Description |
---|---|---|
StringDistribution | str | Incoming message from |
Returns
Type | Description |
---|---|
DiscreteChar | The outgoing EP message to the |
Remarks
The outgoing message is a distribution matching the moments of character
as the random arguments are varied. The formula is proj[p(character) sum_(str) p(str) factor(character,str)]/p(character)
.
CharacterAverageConditional(String)
Declaration
public static DiscreteChar CharacterAverageConditional(string str)
Parameters
Type | Name | Description |
---|---|---|
String | str |
Returns
Type | Description |
---|---|
DiscreteChar |
StrAverageConditional(DiscreteChar)
EP message to str
.
Declaration
public static StringDistribution StrAverageConditional(DiscreteChar character)
Parameters
Type | Name | Description |
---|---|---|
DiscreteChar | character | Incoming message from |
Returns
Type | Description |
---|---|
StringDistribution | The outgoing EP message to the |
Remarks
The outgoing message is a distribution matching the moments of str
as the random arguments are varied. The formula is proj[p(str) sum_(character) p(character) factor(character,str)]/p(str)
.