Interface IRatingRecommenderMapping<TInstanceSource, TInstance, TUser, TItem, TRating, TFeatureSource, TFeatureValues>
A mapping used by the implementations of the IRecommender<TInstanceSource, TUser, TItem, TRating, TRatingDistribution, TFeatureSource> which operate on rated data.
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners.Mappings
Assembly: Microsoft.ML.Probabilistic.Learners.dll
Syntax
public interface IRatingRecommenderMapping<in TInstanceSource, TInstance, TUser, TItem, out TRating, in TFeatureSource, out TFeatureValues> : IRecommenderMapping<TInstanceSource, TInstance, TUser, TItem, TFeatureSource, TFeatureValues>
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. |
Methods
GetRating(TInstanceSource, TInstance)
Extracts a rating from a given instance.
Declaration
TRating GetRating(TInstanceSource instanceSource, TInstance instance)
Parameters
| Type | Name | Description |
|---|---|---|
| TInstanceSource | instanceSource | The source of instances providing the |
| TInstance | instance | The instance to extract the rating from. |
Returns
| Type | Description |
|---|---|
| TRating | The extracted rating. |