Elote is a Python library implementing various rating and ranking algorithms. Named after the Mexican street corn, it provides implementations of Elo, Glicko, ECF, DWZ, and other competitive rating systems.
Features
- Multiple Rating Systems: Elo, Glicko, Glicko-2, ECF, DWZ, and more
- Simple API: Easy-to-use interface for all rating calculations
- Head-to-Head: Direct comparison and match simulation
- Ensemble Methods: Combine multiple rating systems
Installation
pip install elote
Quick Start
from elote import EloCompetitor
player1 = EloCompetitor()
player2 = EloCompetitor()
# Simulate a match where player1 wins
player1.beat(player2)
print(f"Player 1 rating: {player1.rating}")
print(f"Player 2 rating: {player2.rating}")
# Get expected win probability
prob = player1.expected_score(player2)