GithubHelp home page GithubHelp logo

ratings.jl's Introduction

Ratings.jl

Implementation of Elo, Glicko and Glicko2 rating systems in Julia.

using Ratings

# Elo
rjs = [1609.0, 1477.0, 1388.0, 1586.0, 1720.0] # Opponents ratings
sjs = [0.0, 0.5, 1.0, 1.0, 0.0] # Results

# New rating:
elo(1613.0, sjs, rjs; k=32)

# Glicko
rjs = [1400.0, 1550.0, 1700.0] # Opponents ratings
RDjs = [30.0, 100.0, 300.0] # Opponents ratings deviation
sjs = [1.0, 0.0, 0.0] # Results

# New rating and rating deviation:
r′, RD′ = glicko(1500.0, 200.0, sjs, rjs, RDjs; c=0.0)

# Glicko 2
μjs = [-0.5756, 0.2878, 1.1513] # Opponents ratings
ϕjs = [0.1727, 0.5756, 1.7269] # Opponents ratings deviation

# New rating, deviation and volatility:
μ′, ϕ′, σ′ = glicko2(0.0, 1.15, 0.06, sjs, μjs, ϕjs; τ=0.5)

ratings.jl's People

Contributors

fmhahne avatar

Watchers

 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.