Class InnerProductOp_PointB
Provides outgoing messages for InnerProduct(Vector, Vector), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Vector), "InnerProduct", new Type[]{}, Default = false)]
[Buffers(new string[]{"AVariance", "AMean"})]
[Quality(QualityBand.Experimental)]
public class InnerProductOp_PointB : InnerProductOpBase
Methods
AAverageConditional(Gaussian, VectorGaussian, VectorGaussian)
EP message to a.
Declaration
public static VectorGaussian AAverageConditional(Gaussian innerProduct, VectorGaussian B, VectorGaussian result)
Parameters
| Type | Name | Description |
|---|---|---|
| Gaussian | innerProduct | Incoming message from |
| VectorGaussian | B | Incoming message from |
| VectorGaussian | result | Modified to contain the outgoing message. |
Returns
| Type | Description |
|---|---|
| VectorGaussian |
|
Remarks
The outgoing message is a distribution matching the moments of a as the random arguments are varied. The formula is proj[p(a) sum_(innerProduct,b) p(innerProduct,b) factor(innerProduct,a,b)]/p(a).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|
| ImproperMessageException |
|
BAverageConditional(Gaussian, DenseVector, PositiveDefiniteMatrix, VectorGaussian, VectorGaussian)
Declaration
public static VectorGaussian BAverageConditional(Gaussian innerProduct, DenseVector AMean, PositiveDefiniteMatrix AVariance, VectorGaussian B, VectorGaussian result)
Parameters
| Type | Name | Description |
|---|---|---|
| Gaussian | innerProduct | |
| DenseVector | AMean | |
| PositiveDefiniteMatrix | AVariance | |
| VectorGaussian | B | |
| VectorGaussian | result |
Returns
| Type | Description |
|---|---|
| VectorGaussian |
InnerProductAverageConditional(DenseVector, PositiveDefiniteMatrix, VectorGaussian)
EP message to innerProduct.
Declaration
public static Gaussian InnerProductAverageConditional(DenseVector AMean, PositiveDefiniteMatrix AVariance, VectorGaussian B)
Parameters
| Type | Name | Description |
|---|---|---|
| DenseVector | AMean | Buffer |
| PositiveDefiniteMatrix | AVariance | Buffer |
| VectorGaussian | B | Incoming message from |
Returns
| Type | Description |
|---|---|
| Gaussian | The outgoing EP message to the |
Remarks
The outgoing message is a distribution matching the moments of innerProduct as the random arguments are varied. The formula is proj[p(innerProduct) sum_(b) p(b) factor(innerProduct,a,b)]/p(innerProduct).
Exceptions
| Type | Condition |
|---|---|
| ImproperMessageException |
|