Skip to main content

An implementation of Elo rating system for use in comparative crowdsourcing tasks

Project description

Reference implementation of Elo rating system

Python package

Installation

$ python -m pip install -U elo_rating

Example Usage

from elo_rating import Elo

e = Elo()
e.add_match("p1", "p2", 1.0, k=0.15)
e.add_matches([("p1", "p2", 1.0), ("p2", "p1", 0.5)], k=0.15)

e.ratings() # {"p1": 0.13363123747494593, "p2": -0.1336312374749459}
e.items() # ['p1', 'p2']
e.rankings() # {'p1': 0, 'p2': 1}

e.ranking('p1') # 0
e.rating('p1')  # 0.13363123747494593 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

elo_rating-0.0.2-py3-none-any.whl (2.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page