Interface IStarRatingRecommenderEvaluatorMapping<TInstanceSource, TUser, TItem, TRating>
A mapping used by the StarRatingRecommenderEvaluator<TInstanceSource, TUser, TItem, TGroundTruthRating> class.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners.Mappings
Assembly: Microsoft.ML.Probabilistic.Learners.Recommender.dll
Syntax
public interface IStarRatingRecommenderEvaluatorMapping<in TInstanceSource, TUser, TItem, TRating> : IRecommenderEvaluatorMapping<TInstanceSource, TUser, TItem, TRating>
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of an instance source. |
TUser | The type of a user. |
TItem | The type of an item. |
TRating | The type of a rating. |
Methods
GetRatingInfo(TInstanceSource)
Gets the object describing how ratings provided by the instance source map to stars.
Declaration
IStarRatingInfo<TRating> GetRatingInfo(TInstanceSource instanceSource)
Parameters
Type | Name | Description |
---|---|---|
TInstanceSource | instanceSource | The instance source. |
Returns
Type | Description |
---|---|
IStarRatingInfo<TRating> | The object describing how ratings provided by the instance source map to stars. |