|
|
Subject:
algorithm reputation system/review system
Category: Computers > Algorithms Asked by: troy1-ga List Price: $40.00 |
Posted:
05 Feb 2006 08:12 PST
Expires: 07 Feb 2006 14:27 PST Question ID: 441703 |
Hi, I am in a process of creating a site. In this site users will post reviews. My question is what algorithm/calculation to use. A user will post a review and will give it a general rate (1 to 5) and then the readers of the site will vote if this review was helpful or unhelpful. I am looking for algorithm that will take those two factors into consideration. Question are welcomed | |
| |
|
|
There is no answer at this time. |
|
Subject:
Re: algorithm reputation system/review system
From: asqus23-ga on 05 Feb 2006 09:23 PST |
Okay, let's say your site is somewhere for people to review books. The average rating of a book can then be defined, using your listed criteria, as the averaged sum of all individual reviews, FACTORING IN THE WEIGHTING OF EACH REVIEW. In other words, each individual review of a book raises or diminishes the average to a degree determined by how helpful it is deemed. So, let's try some pseudo-code for this, using basic ECMA-Script type language: totalbooks = 100; totalratings = 0; for (i=1;i<=totalbooks,i++){ totalratings += rating[i]; } averageunweightedrating = totalratings/totalbooks; totalweightedratings = totalratings; for (i=1;i<=totalbooks,i++){ totalweightedratings -= (averageunweightedrating - rating[i])/(6-relevance[i]); } averageweightedrating = totalweightedratings/totalbooks; I can knock together an actual code example in Flash Actionscript with a visual output if you need ;-) |
Subject:
Re: algorithm reputation system/review system
From: troy1-ga on 05 Feb 2006 09:57 PST |
asqus23-ga, it looks interesting what you wrote - but cannot understand it.... ( i will give the code to the programmer..) I want to know also the logic. Thanks, troy1 |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |