总结贝叶斯评级公式

发布于 2024-09-08 03:28:46 字数 390 浏览 7 评论 0 原文

根据这个网址,我发现贝叶斯评级,它很好地解释了评级模型,我想总结一下这个公式,以便任何人都可以更轻松地实现 SQL 语句。如果我这样总结公式,这是否正确?

avg_num_votes  = Sum(votes)/Count(votes) * Count(votes)

avg_rating     = sum(votes)/count(votes)

this_num_votes = count(votes)

this_rating    = Positive_votes - Negative_votes

迦特

Based on this url i found Bayesian Rating, which explains the rating model very well, i wanted to summarize the formula to make it much easier for anyone implementing an SQL statement. Would this be correct if i summarized the formula like this?

avg_num_votes  = Sum(votes)/Count(votes) * Count(votes)

avg_rating     = sum(votes)/count(votes)

this_num_votes = count(votes)

this_rating    = Positive_votes - Negative_votes

Gath

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你对谁都笑 2024-09-15 03:28:46

它看起来更像这样:

avg_num_votes  = Count(votes)/Count(items with at least 1 vote)
avg_rating     = Sum(votes)/Count(items with at least 1 vote)

this_num_votes = Count(votes for this item)
this_rating    = Sum(votes for this item)/Count(votes for this item)

如果您使用简单的 +/- 系统,Sum(votes) = Count(positive votes) (即,将 + 视为 1,- 视为 0)

另请参阅: 贝叶斯平均值

It would look more like this:

avg_num_votes  = Count(votes)/Count(items with at least 1 vote)
avg_rating     = Sum(votes)/Count(items with at least 1 vote)

this_num_votes = Count(votes for this item)
this_rating    = Sum(votes for this item)/Count(votes for this item)

If you are using a simple +/- system, Sum(votes) = Count(positive votes) (ie. treat + as 1, - as 0)

See also: Bayesian average.

似梦非梦 2024-09-15 03:28:46

avg_ rating 是否应该为:

Sum(votes)/Count(votes)

Yves

Should the avg_rating not be:

Sum(votes)/Count(votes)

Yves

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文