Github-readme-stats: Improvement: Improve ranking algorithm

Created on 13 Jul 2020  路  10Comments  路  Source: anuraghazra/github-readme-stats

The ranking algorithm works ok but i have seen some users where they have relatively low stats but still got A, A++ ranks.

So the ranking algorithm is currently biased and unbalanced, if someone can create a better one feel free to contribute :smile:

file to look at: calculateRank.js

enhancement good first issue

All 10 comments

The Values of OFFSET's is not good Enough.

const COMMITS_OFFSET = 0.75;
const CONTRIBS_OFFSET = 1.65;
const ISSUES_OFFSET = 1;
const STARS_OFFSET = 1.25;
const PRS_OFFSET = 0.75;
const FOLLOWERS_OFFSET = 0.45;

I Have good no. of Commits and other stats are lower so I got A++ rating. Some people like to write few lines and then commit those few lines, this creates large no. of commits.

So what's you potential suggestions to improve @garvit-joshi? :thinking: maybe we could normalize the values

Yes @anuraghazra, Algorithm looks good, problem lies in values, I will notify you if I get a good solution.

44

We can use the elo rating system. It will have a greater curve at the middle ranks and then eventually the top rank for a lesser number of people

47 Updated Algorithm, IDK why pull request failed?

We can use the elo rating system. It will have a greater curve at the middle ranks and then eventually the top rank for a lesser number of people

@vinayaksh42 this seem reasonable, any ideas on how to implement it?

@anuraghazra we can setup a curve of rankings , for example if we have a range of ranking between 0-100.
The top rank can be between 91-100.
The next rank can have a bigger range (76-90).
It will ensure that less number of people are in the top tier and more people in the middle and average tier.

For calculating the score of users we can change the offset according to which factor in the score is more common and which is less common.

should be fixed in #49

Has this been released? I saw a user where their numbers were 0, but their rating shows A+

Was this page helpful?
0 / 5 - 0 ratings

Related issues

HaaLeo picture HaaLeo  路  4Comments

IvanHornung picture IvanHornung  路  3Comments

kajweb picture kajweb  路  4Comments

JoseDeFreitas picture JoseDeFreitas  路  7Comments

deep5050 picture deep5050  路  3Comments