A Bayesian Skill Rating System
Project description
An implementation of the TrueSkill algorithm for Python. TrueSkill is a rating system among game players and it is used on Xbox Live to rank and match players.
>>> from trueskill import Rating, transform_ratings, match_quality >>> p1, p2, p3, p4 = Rating(), Rating(), Rating(), Rating() >>> team1, team2, team3 = (p1,), (p2, p3), (p4,) >>> transform_ratings([team1, team2, team3]) #doctest: +NORMALIZE_WHITESPACE [(Rating(mu=35.877, sigma=6.791),), (Rating(mu=17.867, sigma=7.059), Rating(mu=17.867, sigma=7.059)), (Rating(mu=21.255, sigma=7.155),)] >>> print '%.1f%%' % (match_quality([team1, team2, team3]) * 100) 4.7%
Links
See Also
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
trueskill-0.1.2.tar.gz
(11.6 kB
view details)
File details
Details for the file trueskill-0.1.2.tar.gz
.
File metadata
- Download URL: trueskill-0.1.2.tar.gz
- Upload date:
- Size: 11.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cacbfbab76b14c86bde6676b419a936c9481c5ba04520fa6e7258a113d8b87e9 |
|
MD5 | e9ce1692b571abc58f2e939ab1956c85 |
|
BLAKE2b-256 | 1edf3fa1ef9367686187a6acc9dbcc0ecb20310de5642d398aac6498ad123a01 |