Interface IStarRatingInfo<TRating>
Interface to provide a mapping from ratings of arbitrary type TRating
to star ratings.
Namespace: Microsoft.ML.Probabilistic.Learners
Assembly: Microsoft.ML.Probabilistic.Learners.dll
Syntax
public interface IStarRatingInfo<in TRating>
Type Parameters
Name | Description |
---|---|
TRating | The type of the ratings. |
Properties
MaxStarRating
Gets the maximum possible star rating.
Declaration
int MaxStarRating { get; }
Property Value
Type | Description |
---|---|
Int32 |
MinStarRating
Gets the minimum possible star rating.
Declaration
int MinStarRating { get; }
Property Value
Type | Description |
---|---|
Int32 |
Remarks
This value must not be negative.
Methods
ToStarRating(TRating)
Converts a rating to a star rating.
Declaration
int ToStarRating(TRating rating)
Parameters
Type | Name | Description |
---|---|---|
TRating | rating | The rating. |
Returns
Type | Description |
---|---|
Int32 | The corresponding star rating. |