GithubHelp home page GithubHelp logo

algorithm: some consistency corrections required (consider add more ranks and unit tests for each rank) about github-readme-stats HOT 4 CLOSED

anuraghazra avatar anuraghazra commented on May 4, 2024 4
algorithm: some consistency corrections required (consider add more ranks and unit tests for each rank)

from github-readme-stats.

Comments (4)

NeoTse avatar NeoTse commented on May 4, 2024 1

if we let the score is zero, then

// TOTAL_VALUES = RANK_S_VALUE + RANK_A2_VALUE + RANK_A3_VALUE + RANK_B_VALUE = 206
// ALL_OFFSETS = CONTRIBS_OFFSET + ISSUES_OFFSET + STARS_OFFSET + PRS_OFFSET + FOLLOWERS_OFFSET + REPO_OFFSET = 5.35
normalcdf(0, 206, 5.35) * 100 = 51.03597635931825

but A+ rank requires the result between [0.45, 0.65), and the score will never be a negative. So any rank below it is useless.

from github-readme-stats.

anuraghazra avatar anuraghazra commented on May 4, 2024

Yes @Dentrax the ranking algorithm isn't really consistent throughout,
@b1f6c1c4 did a pr which includes h-index #76 which might also work maybe.

I'm not good at maths so i don't have any idea which algorithm will result in good balance. so any help would be appreciated.
if anyone wanted to implement this PR feel free to do so.

from github-readme-stats.

b1f6c1c4 avatar b1f6c1c4 commented on May 4, 2024
  1. There is no ultimate and universal way to merge multiple metrics into one metric. Weighted arithmetic average is the closest one. However metrics needs to be scaled before they are averaged.
  2. The best way to determine how to scale the metric, as well as how to divide the continuous combined metrics into discrete ranks, is through statistics. It's definitely necessary to sample a moderate amount of GitHub users (not just famous users), collect their metrics, and do statistics.

from github-readme-stats.

stale avatar stale commented on May 4, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from github-readme-stats.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.