Class PosteriorDistributions<TUser, TItem>
The posterior distribution over the parameters of the Matchbox model.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners
Assembly: Microsoft.ML.Probabilistic.Learners.Recommender.dll
Syntax
public class PosteriorDistributions<TUser, TItem>
Type Parameters
Name | Description |
---|---|
TUser | The type of a user. |
TItem | The type of an item. |
Constructors
PosteriorDistributions(IDictionary<TUser, UserPosteriorDistribution>, IDictionary<TItem, ItemPosteriorDistribution>, IList<FeaturePosteriorDistribution>, IList<FeaturePosteriorDistribution>)
Initializes a new instance of the PosteriorDistributions<TUser, TItem> class.
Declaration
public PosteriorDistributions(IDictionary<TUser, UserPosteriorDistribution> users, IDictionary<TItem, ItemPosteriorDistribution> items, IList<FeaturePosteriorDistribution> userFeatures, IList<FeaturePosteriorDistribution> itemFeatures)
Parameters
Type | Name | Description |
---|---|---|
IDictionary<TUser, UserPosteriorDistribution> | users | The user posterior distributions. |
IDictionary<TItem, ItemPosteriorDistribution> | items | The item posterior distributions. |
IList<FeaturePosteriorDistribution> | userFeatures | The user feature posterior distributions. |
IList<FeaturePosteriorDistribution> | itemFeatures | The item feature posterior distributions. |
Properties
ItemFeatures
Gets the item feature posterior distributions.
Declaration
public IList<FeaturePosteriorDistribution> ItemFeatures { get; }
Property Value
Type | Description |
---|---|
IList<FeaturePosteriorDistribution> |
Items
Gets the item posterior distributions.
Declaration
public IDictionary<TItem, ItemPosteriorDistribution> Items { get; }
Property Value
Type | Description |
---|---|
IDictionary<TItem, ItemPosteriorDistribution> |
UserFeatures
Gets the user feature posterior distributions.
Declaration
public IList<FeaturePosteriorDistribution> UserFeatures { get; }
Property Value
Type | Description |
---|---|
IList<FeaturePosteriorDistribution> |
Users
Gets the user posterior distributions.
Declaration
public IDictionary<TUser, UserPosteriorDistribution> Users { get; }
Property Value
Type | Description |
---|---|
IDictionary<TUser, UserPosteriorDistribution> |