]> git.lizzy.rs Git - cheatdb.git/blob - app/flatpages/help/top_packages.md
Document top packages algorithm
[cheatdb.git] / app / flatpages / help / top_packages.md
1 title: Top Packages Algorithm
2
3 ## Pseudo rolling average
4
5 Every package loses 5% of its score every day.
6
7 An open source package will gain 1 score for each unique download,
8 whereas a non-free package will only gain 0.1 score.
9
10 A package currently only gains score through downloads.
11 In the future, a package will also gain score through reviews.
12
13 ## Seed using a legacy heuristic
14
15 The scoring system was seeded (ie: the scores were initially set to) 20% of an
16 arbitrary legacy heuristic that was previously used to rank packages.
17
18 This legacy heuristic is as follows:
19
20         forum_score = views / max(years_since_creation, 2 weeks) + 80*clamp(months, 0.5, 6)
21         forum_bonus = views + posts
22
23         multiplier = 1
24         if no screenshot:
25                 multiplier *= 0.8
26         if not foss:
27                 multiplier *= 0.1
28
29         score = multiplier * (max(downloads, forum_score * 0.6) + forum_bonus)
30
31 As said, this legacy score is no longer used when ranking mods.
32 It was only used to provide an initial score for the rolling average,
33 which was 20% of the above value.
34
35 ## Transparency and Feedback
36
37 You can see all scores using the [scores REST API](/api/scores/).
38
39 Consider [suggesting improvements](https://github.com/minetest/contentdb/issues/new?assignees=&labels=Policy&template=policy.md&title=).