Class RatingInstance<TUser, TItem, TRating>
Represents a user-item-rating triple.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners
Assembly: Microsoft.ML.Probabilistic.Learners.Recommender.dll
Syntax
public class RatingInstance<TUser, TItem, TRating>
Type Parameters
Name | Description |
---|---|
TUser | The type of a user. |
TItem | The type of an item. |
TRating | The type of a rating. |
Constructors
RatingInstance(TUser, TItem, TRating)
Initializes a new instance of the RatingInstance<TUser, TItem, TRating> class.
Declaration
public RatingInstance(TUser user, TItem item, TRating rating)
Parameters
Type | Name | Description |
---|---|---|
TUser | user | The user. |
TItem | item | The item. |
TRating | rating | The rating. |
Properties
Item
Gets the item.
Declaration
public TItem Item { get; }
Property Value
Type | Description |
---|---|
TItem |
Rating
Gets the rating.
Declaration
public TRating Rating { get; }
Property Value
Type | Description |
---|---|
TRating |
User
Gets the user.
Declaration
public TUser User { get; }
Property Value
Type | Description |
---|---|
TUser |