dougz / trueskill Goto Github PK
View Code? Open in Web Editor NEWPython implementation of TrueSkill player ranking
Python implementation of TrueSkill player ranking
This is a simple Python implementation of the TrueSkill (TM) ranking system described here: http://research.microsoft.com/en-us/projects/trueskill/ You'll need SciPy installed to use it.
To reproduce: https://gist.github.com/975955
Interestingly, I run the same program using the version by @dmj111 which removes the need for scipy https://github.com/dmj111/trueskill , and there it throws the following (line numbers might be slightly inaccurate as I edited the files a bit):
...
File "/something/trueskill.py", line 191, in _InternalUpdate
new_pi = 1.0 / (sum(a[j]*a[j] / (y[j].pi - fy[j].pi) for j in range(len(a))))
File "/something/trueskill.py", line 191, in <genexpr>
new_pi = 1.0 / (sum(a[j]*a[j] / (y[j].pi - fy[j].pi) for j in range(len(a))))
ZeroDivisionError: float division by zero
I would appreciate that you at least give me some insight about what is wrong here, since trueskill is quite a complicated algorithm that I don't understand fully...
(by the way, the dataset that I commented out runs just fine with your version but causes ZeroDivisionError in @dmj111 version.)
Kind of a long shot, but you mentioned here that it would be pretty easy to implement multiplayer team support. Can you point me in the right direction?
Would you mind adding an empty file __init__.py
so that I can use your project directly as a submodule in my tremstat project?
And perhaps also adding .gitignore
to ignore *.pyc files. Thanks a lot.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.