An implementation of Elo rating system for use in comparative crowdsourcing tasks
Project description
Reference implementation of Elo rating system
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
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file elo_rating-0.0.2-py3-none-any.whl.
File metadata
- Download URL: elo_rating-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
be9151c40affcad32f3972102d95b080cda44cde3688d6127077d9f23f1e5378
|
|
| MD5 |
7bb19d1e39c98e015f769100da0c068c
|
|
| BLAKE2b-256 |
8ea7185c9f607fce4561a937bd6f69f93a0128c2d07c03a4df1dc3672ca941aa
|