Search Results for

    Show / Hide Table of Contents

    Class StarRatingInfo

    Provides a mapping for the case in which ratings are already star ratings.

    Inheritance
    Object
    StarRatingInfo
    Implements
    IStarRatingInfo<Int32>
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    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.

    Implements

    IStarRatingInfo<TRating>
    In This Article
    Back to top Copyright © .NET Foundation. All rights reserved.