Coder Social home page Coder Social logo

distance-ratings's Introduction

Distance Ratings

Read more on Glicko2 here & here.

Read more on Elo here.

Matches are based on WR Log, using the new record holder as the match winner, and the old record holder as the match loser. The following are filtered out of the entry list to get fairer ratings:

  • Non-Sprint maps.
  • Entries where a person beat their own time (not against someone else).
  • Entries including people who have a small number of total occurrances (configurable, default minimum 10 WR Log entries).

Usage

Rename .env.sample to .env, supply a Steam web API key (from here) and change the various inputs as you need.

Sample .env explained:

// Steam API key you can obtain from the link above.
STEAM_API_KEY=12345

// Filter out players who don't appear more than this number of times.
MIN_MATCHES_PER_PLAYER=10

// Glicko2 matches are processed in batches
// This changes how many matches before the next batch
MATCH_COUNT_BEFORE_RANKING_UPDATE=20

// Whether the csv should include hyperlinks to Steam profiles or not.
// 1 = Include links, 0 = No links.
INCLUDE_LINK=1

// Default rating used for Glicko.
DEFAULT_GLICKO_RATING=1500

// Read more on Glicko 2 at the link above for more detail on the next 4.
// Generally between 0.3 and 1.2.
DEFAULT_GLICKO_TAU=0.5

// Smaller rating deviation correlates to more confidence in the rating accuracy.
DEFAULT_GLICKO_RATING_DEVIATION=200

// Expected fluctuation on player ratings (speed of rating evolution).
DEFAULT_GLICKO_VOLATILITY=0.06

// Default rating used for Elo.
DEFAULT_ELO_RATING=1500

// Max amount each match can change a player's ELO rating.
DEFAULT_ELO_KFACTOR=32

Run npm install, npm start, and get the output ratings.csv.

Sample Output

Google Sheet - pubhtml

distance-ratings's People

Contributors

californ1a avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.