Add score bonus to reviews

This commit is contained in:
rubenwardy
2020-07-09 04:32:13 +01:00
parent d0aecd0ee5
commit ac7adde4b1
5 changed files with 26 additions and 26 deletions

View File

@@ -2,8 +2,12 @@ title: Top Packages Algorithm
## Score
A package's score is currently equal to a pseudo rolling average of downloads.
In the future, a package will also gain score through reviews.
A package's score is currently equal to a pseudo rolling average of downloads,
plus the sum of review scores.
A review score is 100 if positive, -100 if negative.
score = avg_downloads + Σ 100 * (positive ? 1 : -1)
## Pseudo rolling average of downloads
@@ -35,7 +39,8 @@ which was 20% of the above value.
## Manual adjustments
The admin occasionally reduces all packages by a set percentage to speed up
convergence. Convergence is when
convergence. Convergence is when the pseudo-rolling average matches the actual
rolling average - the effect of the legacy heuristic is gone.
## Transparency and Feedback