Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vivekjoshy/openskill.py
Multiplayer Rating System. No Friction.
https://github.com/vivekjoshy/openskill.py
elo openskill openskill-py pypy python ranking ranking-system rating rating-system
Last synced: 2 months ago
JSON representation
Multiplayer Rating System. No Friction.
- Host: GitHub
- URL: https://github.com/vivekjoshy/openskill.py
- Owner: vivekjoshy
- License: mit
- Created: 2020-12-22T13:38:59.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-07-24T13:16:59.000Z (4 months ago)
- Last Synced: 2024-07-24T15:16:17.994Z (4 months ago)
- Topics: elo, openskill, openskill-py, pypy, python, ranking, ranking-system, rating, rating-system
- Language: Jupyter Notebook
- Homepage: https://openskill.me
- Size: 12.9 MB
- Stars: 256
- Watchers: 6
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.rst
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Citation: CITATION.cff
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
A faster and open license asymmetric multi-team, multiplayer rating system comparable to TrueSkill.
## Description
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/openskill) ![Conda (channel only)](https://anaconda.org/conda-forge/openskill/badges/version.svg) ![PyPI - Implementation](https://img.shields.io/pypi/implementation/openskill)
[![Discord](https://img.shields.io/discord/1127581396345556994?logo=discord&label=Official%20Discord%20Server&color=%235865F2&link=https%3A%2F%2Fdiscord.com%2Finvite%2F4JNDeHMYkM)](https://discord.com/invite/4JNDeHMYkM)
In the multifaceted world of online gaming, an accurate multiplayer rating system plays a crucial role. A multiplayer rating system measures and compares players' skill levels in competitive games to ensure balanced match-making, boosting overall gaming experiences. Currently, TrueSkill by Microsoft Research is a notable rating system, but gaming communities are yearning for faster, more adaptable alternatives.
Here are *some*, but not all, of the reasons you should drop TrueSkill
and bury Elo once and for all:- Multiplayer.
- Multifaction.
- Asymmetric faction size.
- Predict Win, Draw and Rank Outcomes.
- Per Player Weights
- Partial Play
- 150% faster than TrueSkill.
- 100% Pure Python.
- 100% Test Coverage.
- CPython and PyPy Support.
- 5 Separate Models.
- Fine-grained control of mathematical constants.
- Open License
- Accuracy on par with TrueSkill.## Installation
```shell
pip install openskill
```## Usage
The official documentation is hosted [here](https://openskill.me/en/stable/).
Please refer to it for details on how to use this library.### Limited Example
```python
>>> from openskill.models import PlackettLuce
>>> model = PlackettLuce()
>>> model.rating()
PlackettLuceRating(mu=25.0, sigma=8.333333333333334)
>>> r = model.rating
>>> [[a, b], [x, y]] = [[r(), r()], [r(), r()]]
>>> [[a, b], [x, y]] = model.rate([[a, b], [x, y]])
>>> a
PlackettLuceRating(mu=26.964294621803063, sigma=8.177962604389991)
>>> x
PlackettLuceRating(mu=23.035705378196937, sigma=8.177962604389991)
>>> (a == b) and (x == y)
True
```# Support
If you're struggling with any of the concepts, please search the discussions section to see if your question has already been answered.
If you can't find an answer, please open a new [discussion](https://github.com/vivekjoshy/openskill.py/discussions) and we'll try to help you out.
You can also get help from the official [Discord Server](https://discord.com/invite/4JNDeHMYkM>). If you have a feature request, or want to report
a bug please create a new [issue](https://github.com/vivekjoshy/openskill.py/issues/new/choose) if one already doesn't exist.# References
This project is originally based off the [openskill.js](https://github.com/philihp/openskill.js) package. All of the Weng-Lin models are based off the work in this wonderful [paper](https://jmlr.org/papers/v12/weng11a.html) or are the derivatives of algorithms found in it.- Julia Ibstedt, Elsa Rådahl, Erik Turesson, and Magdalena vande Voorde. Application and further development of trueskill™ ranking in sports. 2019.
- Ruby C. Weng and Chih-Jen Lin. A bayesian approximation method for online ranking. Journal of Machine Learning Research, 12(9):267–300, 2011. URL: http://jmlr.org/papers/v12/weng11a.html.## Implementations in other Languages
- [Javascript](https://github.com/philihp/openskill.js)
- [Elixir](https://github.com/philihp/openskill.ex)
- [Kotlin](https://github.com/brezinajn/openskill.kt)
- [Lua](https://github.com/bstummer/openskill.lua)