Class GetItemsPointOp<T>
Provides outgoing messages for GetItems<T>(IReadOnlyList<T>, IReadOnlyList<Int32>), given random arguments to the function.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Factors
Assembly: Microsoft.ML.Probabilistic.dll
Syntax
[FactorMethod(typeof(Collection), "GetItems<>", new Type[]{}, Default = false)]
[Quality(QualityBand.Experimental)]
public static class GetItemsPointOp<T>
Type Parameters
Name | Description |
---|---|
T | The type of an item. |
Methods
ItemsAverageConditional<DistributionType>(IList<DistributionType>, IList<Int32>, Int32, DistributionType)
EP message to items
.
Declaration
public static DistributionType ItemsAverageConditional<DistributionType>([SkipIfAllUniform] IList<DistributionType> array, IList<int> indices, int resultIndex, DistributionType result)
where DistributionType : SettableTo<DistributionType>
Parameters
Type | Name | Description |
---|---|---|
IList<DistributionType> | array | Incoming message from |
IList<Int32> | indices | Incoming message from |
Int32 | resultIndex | Index of the |
DistributionType | result | Modified to contain the outgoing message. |
Returns
Type | Description |
---|---|
DistributionType |
|
Type Parameters
Name | Description |
---|---|
DistributionType | The type of a distribution over array elements. |
Remarks
The outgoing message is a distribution matching the moments of items
as the random arguments are varied. The formula is proj[p(items) sum_(array,indices) p(array,indices) factor(items,array,indices)]/p(items)
.
Exceptions
Type | Condition |
---|---|
ImproperMessageException |
|