Class StarRatingInfo
Provides a mapping for the case in which ratings are already star ratings.
Implements
Inherited Members
Namespace: Microsoft.ML.Probabilistic.Learners
Assembly: Microsoft.ML.Probabilistic.Learners.dll
Syntax
[Serializable]
public class StarRatingInfo : IStarRatingInfo<int>
Constructors
StarRatingInfo(Int32, Int32)
Initializes a new instance of the StarRatingInfo class.
Declaration
public StarRatingInfo(int minRating, int maxRating)
Parameters
Type | Name | Description |
---|---|---|
Int32 | minRating | The minimum possible rating. |
Int32 | maxRating | The maximum possible rating. |
Properties
MaxStarRating
Gets the maximum possible star rating.
Declaration
public int MaxStarRating { get; }
Property Value
Type | Description |
---|---|
Int32 |
MinStarRating
Gets the minimum possible star rating.
Declaration
public int MinStarRating { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
ToStarRating(Int32)
Converts a rating to the corresponding star rating.
Declaration
public int ToStarRating(int rating)
Parameters
Type | Name | Description |
---|---|---|
Int32 | rating | The rating. |
Returns
Type | Description |
---|---|
Int32 | The corresponding star rating. |