lamernews icon indicating copy to clipboard operation
lamernews copied to clipboard

Comment score using Wilson score interval

Open nremond opened this issue 14 years ago • 3 comments

Hi,

I think we can easily improve the computation of the comment score. It should be based on the Wilson score interval as explain by Evan Miller here : http://www.evanmiller.org/how-not-to-sort-by-average-rating.html

Thus, I would suggest to patch your compute_score_comment() method as follow : https://gist.github.com/1343554

What do you think ?

nremond avatar Nov 06 '11 22:11 nremond

Yes I think this is a good idea.

jellomaster avatar Nov 10 '11 16:11 jellomaster

About the news sorting, I found this interesting blog entry : http://blog.linkibol.com/2010/05/07/how-to-build-a-popularity-algorithm-you-can-be-proud-of/

The formula here : http://blog.linkibol.com/resource/linkibol.PNG could correspond to what antirez is expecting when he put this comment in the code : # FIXME: For now we are doing a naive sum of votes, without time-based filtering, nor IP filtering.

nremond avatar Nov 10 '11 22:11 nremond

This change looks great! I'll merge it in the next days. Thanks.

antirez avatar Oct 09 '12 23:10 antirez