What is the best algorithm to calculate the most scored item?

前端 未结 5 807
名媛妹妹
名媛妹妹 2020-12-07 15:15

I have an music items that are scored by users between 1 to 5, and I need a formula to get the 5 most scored items.

But obviously an item that get 3.5 average score

5条回答
  •  青春惊慌失措
    2020-12-07 15:55

    The term for this is bayesian estimate.

    One common example:

    Bayesian rating = (v*R + m*C)/(v+m)
    where:
    R = average rating of song
    v = number of votes for the song
    m = minimum votes required to be listed (ex. 10)
    C = average vote across all songs

提交回复
热议问题