Flooding Bayesian rating creates values out of range

后端 未结 1 2018
谎友^
谎友^ 2021-02-11 02:37

I\'m trying to apply the Bayesian rating formula, but if I rate 1 out of 5 thousand of hundreds, the final rating is greater than 5.

For example, a given item has no vot

相关标签:
1条回答
  • 2021-02-11 02:52

    You need to divide by total_votes rather than total_items when calculating avg_rating.

    I made the changes and got something that behaves much better here.

    http://codepad.org/gSdrUhZ2

    0 讨论(0)
提交回复
热议问题