openskill


Nameopenskill JSON
Version 6.0.1 PyPI version JSON
download
home_pageNone
SummaryMultiplayer Rating System. No Friction.
upload_time2024-11-02 12:26:18
maintainerNone
docs_urlNone
authorNone
requires_python~=3.10
licenseMIT
keywords ranking trueskill statistics rating math rank
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            <p align="center" style="text-align: center">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://i.imgur.com/7yAVFkZ.png">
  <source media="(prefers-color-scheme: light)" srcset="https://i.imgur.com/UvrkUF3.png">
  <img alt="Multiplayer Rating System. No Friction." src="https://i.imgur.com/QJUy18S.png">
</picture>
</p>

<p align="center" style="text-align: center">A faster and open license asymmetric multi-team, multiplayer rating system comparable to TrueSkill.</p>

<p align="center" style="text-align: center">
    <a href="https://stand-with-ukraine.pp.ua">
        <img
            src="https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg"
            alt="Stand With Ukraine"
        />
    </a>
</p>

<p align="center" style="text-align: center">
    <a
        href="https://github.com/vivekjoshy/openskill.py/actions/workflows/main.yml">
            <img
                src="https://github.com/vivekjoshy/openskill.py/actions/workflows/main.yml/badge.svg"
                alt="Tests"
    />
    </a>
    <a
        href="https://codecov.io/gh/vivekjoshy/openskill.py">
            <img
                src="https://codecov.io/gh/vivekjoshy/openskill.py/branch/main/graph/badge.svg?token=Ep07QEelsi"
                alt="codecov" />
    <a
        href="https://openskill.me/en/latest/?badge=latest">
            <img
                src="https://readthedocs.org/projects/openskillpy/badge/?version=latest"
                    alt="Documentation Status"
            />
    </a>
    <img
        src="https://img.shields.io/github/all-contributors/vivekjoshy/openskill.py/main"
    />
    <a style="border-width:0" href="https://doi.org/10.21105/joss.05901">
      <img src="https://joss.theoj.org/papers/10.21105/joss.05901/status.svg" alt="DOI badge" >
    </a>
</p>



## 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)

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "openskill",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "~=3.10",
    "maintainer_email": "Vivek Joshy <vivekjoshy97@gmail.com>",
    "keywords": "ranking, trueskill, statistics, rating, math, rank",
    "author": null,
    "author_email": "Vivek Joshy <vivekjoshy97@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/f7/86/b2ac8cddd5e9156772949d700ca277cf2ae489e3e8fd9c4f96a417cfd899/openskill-6.0.1.tar.gz",
    "platform": null,
    "description": "<p align=\"center\" style=\"text-align: center\">\n<picture>\n  <source media=\"(prefers-color-scheme: dark)\" srcset=\"https://i.imgur.com/7yAVFkZ.png\">\n  <source media=\"(prefers-color-scheme: light)\" srcset=\"https://i.imgur.com/UvrkUF3.png\">\n  <img alt=\"Multiplayer Rating System. No Friction.\" src=\"https://i.imgur.com/QJUy18S.png\">\n</picture>\n</p>\n\n<p align=\"center\" style=\"text-align: center\">A faster and open license asymmetric multi-team, multiplayer rating system comparable to TrueSkill.</p>\n\n<p align=\"center\" style=\"text-align: center\">\n    <a href=\"https://stand-with-ukraine.pp.ua\">\n        <img\n            src=\"https://raw.githubusercontent.com/vshymanskyy/StandWithUkraine/main/badges/StandWithUkraine.svg\"\n            alt=\"Stand With Ukraine\"\n        />\n    </a>\n</p>\n\n<p align=\"center\" style=\"text-align: center\">\n    <a\n        href=\"https://github.com/vivekjoshy/openskill.py/actions/workflows/main.yml\">\n            <img\n                src=\"https://github.com/vivekjoshy/openskill.py/actions/workflows/main.yml/badge.svg\"\n                alt=\"Tests\"\n    />\n    </a>\n    <a\n        href=\"https://codecov.io/gh/vivekjoshy/openskill.py\">\n            <img\n                src=\"https://codecov.io/gh/vivekjoshy/openskill.py/branch/main/graph/badge.svg?token=Ep07QEelsi\"\n                alt=\"codecov\" />\n    <a\n        href=\"https://openskill.me/en/latest/?badge=latest\">\n            <img\n                src=\"https://readthedocs.org/projects/openskillpy/badge/?version=latest\"\n                    alt=\"Documentation Status\"\n            />\n    </a>\n    <img\n        src=\"https://img.shields.io/github/all-contributors/vivekjoshy/openskill.py/main\"\n    />\n    <a style=\"border-width:0\" href=\"https://doi.org/10.21105/joss.05901\">\n      <img src=\"https://joss.theoj.org/papers/10.21105/joss.05901/status.svg\" alt=\"DOI badge\" >\n    </a>\n</p>\n\n\n\n## Description\n\n![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)\n\n[![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)\n\nIn 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.\n\nHere are *some*, but not all, of the reasons you should drop TrueSkill\nand bury Elo once and for all:\n\n- Multiplayer.\n- Multifaction.\n- Asymmetric faction size.\n- Predict Win, Draw and Rank Outcomes.\n- Per Player Weights\n- Partial Play\n- 150% faster than TrueSkill.\n- 100% Pure Python.\n- 100% Test Coverage.\n- CPython and PyPy Support.\n- 5 Separate Models.\n- Fine-grained control of mathematical constants.\n- Open License\n- Accuracy on par with TrueSkill.\n\n\n## Installation\n```shell\npip install openskill\n```\n\n## Usage\n\nThe official documentation is hosted [here](https://openskill.me/en/stable/).\nPlease refer to it for details on how to use this library.\n\n### Limited Example\n\n```python\n>>> from openskill.models import PlackettLuce\n>>> model = PlackettLuce()\n>>> model.rating()\nPlackettLuceRating(mu=25.0, sigma=8.333333333333334)\n>>> r = model.rating\n>>> [[a, b], [x, y]] = [[r(), r()], [r(), r()]]\n>>> [[a, b], [x, y]] = model.rate([[a, b], [x, y]])\n>>> a\nPlackettLuceRating(mu=26.964294621803063, sigma=8.177962604389991)\n>>> x\nPlackettLuceRating(mu=23.035705378196937, sigma=8.177962604389991)\n>>> (a == b) and (x == y)\nTrue\n```\n\n# Support\nIf you're struggling with any of the concepts, please search the discussions section to see if your question has already been answered.\nIf 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.\nYou can also get help from the official [Discord Server](https://discord.com/invite/4JNDeHMYkM>). If you have a feature request, or want to report\na bug please create a new [issue](https://github.com/vivekjoshy/openskill.py/issues/new/choose) if one already doesn't exist.\n\n# References\nThis 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.\n\n- Julia Ibstedt, Elsa R\u00e5dahl, Erik Turesson, and Magdalena vande Voorde. Application and further development of trueskill\u2122 ranking in sports. 2019.\n- Ruby C. Weng and Chih-Jen Lin. A bayesian approximation method for online ranking. Journal of Machine Learning Research, 12(9):267\u2013300, 2011. URL: http://jmlr.org/papers/v12/weng11a.html.\n\n## Implementations in other Languages\n- [Javascript](https://github.com/philihp/openskill.js)\n- [Elixir](https://github.com/philihp/openskill.ex)\n- [Kotlin](https://github.com/brezinajn/openskill.kt)\n- [Lua](https://github.com/bstummer/openskill.lua)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Multiplayer Rating System. No Friction.",
    "version": "6.0.1",
    "project_urls": {
        "Changelog": "https://github.com/vivekjoshy/openskill.py/blob/main/CHANGELOG.rst",
        "Documentation": "https://openskill.me/en/stable",
        "Funding": "https://opencollective.com/openskill",
        "Source": "https://github.com/vivekjoshy/openskill.py",
        "Tracker": "https://github.com/vivekjoshy/openskill.py/issues"
    },
    "split_keywords": [
        "ranking",
        " trueskill",
        " statistics",
        " rating",
        " math",
        " rank"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "545d4c1efb5971adabc1cb93a53a91f2e8be017a8026963fe3925abd133111b7",
                "md5": "1b6c80a09ec79e9325063d7ef9d0aaa8",
                "sha256": "efb6372816953686f2d455be8156848541751ff25c6524370c231e0e0045b064"
            },
            "downloads": -1,
            "filename": "openskill-6.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1b6c80a09ec79e9325063d7ef9d0aaa8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.10",
            "size": 45686,
            "upload_time": "2024-11-02T12:26:17",
            "upload_time_iso_8601": "2024-11-02T12:26:17.040238Z",
            "url": "https://files.pythonhosted.org/packages/54/5d/4c1efb5971adabc1cb93a53a91f2e8be017a8026963fe3925abd133111b7/openskill-6.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f786b2ac8cddd5e9156772949d700ca277cf2ae489e3e8fd9c4f96a417cfd899",
                "md5": "e74205daf06484598073747a44e477c9",
                "sha256": "704e0e29452c94b41cdf020411ee6fcaf72c4eeb546f50f7266ba5a15d1bf821"
            },
            "downloads": -1,
            "filename": "openskill-6.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e74205daf06484598073747a44e477c9",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.10",
            "size": 44161,
            "upload_time": "2024-11-02T12:26:18",
            "upload_time_iso_8601": "2024-11-02T12:26:18.645974Z",
            "url": "https://files.pythonhosted.org/packages/f7/86/b2ac8cddd5e9156772949d700ca277cf2ae489e3e8fd9c4f96a417cfd899/openskill-6.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-02 12:26:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "vivekjoshy",
    "github_project": "openskill.py",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "tox": true,
    "lcname": "openskill"
}
        
Elapsed time: 0.41429s