Skip to main content

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 

Release files for elo-rating 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for elo-rating 0.0.2
File Interpreter ABI Platform
elo_rating-0.0.2-py3-none-any.whl Python 3 none any Details

Release files / elo_rating-0.0.2-py3-none-any.whl

Download URL elo_rating-0.0.2-py3-none-any.whl
Size 2.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be9151c40affcad32f3972102d95b080cda44cde3688d6127077d9f23f1e5378
BLAKE2b-256 checksum
How to use checksums
8ea7185c9f607fce4561a937bd6f69f93a0128c2d07c03a4df1dc3672ca941aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.8.6

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page