Class StarRatingRecommenderEvaluatorMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues>
A mapping used by an evaluator of recommenders.
Inheritance
RecommenderEvaluatorMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues>
StarRatingRecommenderEvaluatorMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues>
Implements
IStarRatingRecommenderEvaluatorMapping<TInstanceSource, TUser, TItem, TRating>
IRecommenderEvaluatorMapping<TInstanceSource, TUser, TItem, TRating>
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners.Mappings
Assembly: Microsoft.ML.Probabilistic.Learners.Recommender.dll
Syntax
public class StarRatingRecommenderEvaluatorMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues> : RecommenderEvaluatorMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues>, IStarRatingRecommenderEvaluatorMapping<TInstanceSource, TUser, TItem, TRating>, IRecommenderEvaluatorMapping<TInstanceSource, TUser, TItem, TRating>
Type Parameters
Name | Description |
---|---|
TInstanceSource | The type of a source of instances. |
TInstance | The type of an instance |
TUser | The type of a user. |
TItem | The type of an item. |
TRating | The type of a rating. |
TFeatureSource | The type of a feature source. |
TFeatureValues | The type of the feature values. |
Constructors
StarRatingRecommenderEvaluatorMapping(IStarRatingRecommenderMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues>)
Initializes a new instance of the StarRatingRecommenderEvaluatorMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues> class.
Declaration
public StarRatingRecommenderEvaluatorMapping(IStarRatingRecommenderMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues> mapping)
Parameters
Type | Name | Description |
---|---|---|
IStarRatingRecommenderMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues> | mapping | The recommender mapping. |
Methods
GetRatingInfo(TInstanceSource)
Gets the object describing how ratings provided by the instance source map to stars.
Declaration
public 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. |