elo-rating


Nameelo-rating JSON
Version 0.0.2 PyPI version JSON
download
home_page
SummaryAn implementation of Elo rating system for use in comparative crowdsourcing tasks
upload_time2023-01-15 18:58:07
maintainer
docs_urlNone
author
requires_python>=3.8
licenseMIT
keywords elo crowdsourcing ranking
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Reference implementation of Elo rating system 
[![Python package](https://github.com/hastinarimanzadeh/elo-rating/actions/workflows/python-package.yml/badge.svg)](https://github.com/hastinarimanzadeh/elo-rating/actions/workflows/python-package.yml)

## Installation
```bash
$ python -m pip install -U elo_rating
```
## Example Usage
```python
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 
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "elo-rating",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "Elo,Crowdsourcing,Ranking",
    "author": "",
    "author_email": "Hasti Narimanzadeh <hasti.nz@gmail.com>",
    "download_url": "",
    "platform": null,
    "description": "# Reference implementation of Elo rating system \n[![Python package](https://github.com/hastinarimanzadeh/elo-rating/actions/workflows/python-package.yml/badge.svg)](https://github.com/hastinarimanzadeh/elo-rating/actions/workflows/python-package.yml)\n\n## Installation\n```bash\n$ python -m pip install -U elo_rating\n```\n## Example Usage\n```python\nfrom elo_rating import Elo\n\ne = Elo()\ne.add_match(\"p1\", \"p2\", 1.0, k=0.15)\ne.add_matches([(\"p1\", \"p2\", 1.0), (\"p2\", \"p1\", 0.5)], k=0.15)\n\ne.ratings() # {\"p1\": 0.13363123747494593, \"p2\": -0.1336312374749459}\ne.items() # ['p1', 'p2']\ne.rankings() # {'p1': 0, 'p2': 1}\n\ne.ranking('p1') # 0\ne.rating('p1')  # 0.13363123747494593 \n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "An implementation of Elo rating system for use in comparative crowdsourcing tasks",
    "version": "0.0.2",
    "split_keywords": [
        "elo",
        "crowdsourcing",
        "ranking"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8ea7185c9f607fce4561a937bd6f69f93a0128c2d07c03a4df1dc3672ca941aa",
                "md5": "7bb19d1e39c98e015f769100da0c068c",
                "sha256": "be9151c40affcad32f3972102d95b080cda44cde3688d6127077d9f23f1e5378"
            },
            "downloads": -1,
            "filename": "elo_rating-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7bb19d1e39c98e015f769100da0c068c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 2263,
            "upload_time": "2023-01-15T18:58:07",
            "upload_time_iso_8601": "2023-01-15T18:58:07.206392Z",
            "url": "https://files.pythonhosted.org/packages/8e/a7/185c9f607fce4561a937bd6f69f93a0128c2d07c03a4df1dc3672ca941aa/elo_rating-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-15 18:58:07",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "elo-rating"
}
        
Elapsed time: 0.03841s