PHP / MySQL的 - 算法"最高评分QUOT; [英] PHP/MySQL - algorithm for "Top Rated"

查看:111
本文介绍了PHP / MySQL的 - 算法"最高评分QUOT;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我刚刚建立了一个星级评级制度,并试图想出一个算法,列出了最高评价项目。为简单起见,这里的列:

So I just built a star-rating system and and trying to come up with an algorithm to list the "Top Rated" items. For simplicity, here are the columns:

item_name
average_rating (a decimal from 1 to 5)
num_votes

我试图确定投票和评分数之间的甜蜜点。例如...

I'm trying to determine the "sweet spot" between number of votes and rating. For example...

  • 在额定的项目(4.6 / 20票)应该是列表中选择除一个项目,是(5.0 / 2票)
  • 在更高
  • 在额定的项目(2.5 / 100票)应低于一个项目,是(4.5 / 2票)

所以,换句话说, NUM_VOTES 起到什么是最高的一个因素。

So in other words, num_votes plays a factor in what's "Top".

任何人都知道一个算法是pretty的善于确定这个甜蜜点的?

Anyone know of an algorithm that is pretty good at determining this "sweet spot"?

在此先感谢。

推荐答案

这里的另一个,统计学音质好办法:<一href="http://www.thebroth.com/blog/118/bayesian-rating">http://www.thebroth.com/blog/118/bayesian-rating

here's another, statistically sound good way: http://www.thebroth.com/blog/118/bayesian-rating

这篇关于PHP / MySQL的 - 算法&QUOT;最高评分QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆