GithubHelp home page GithubHelp logo

jluttine / bayes-league Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 313 KB

Bayesian ranking of players in a league/tournament

License: GNU Affero General Public License v3.0

Python 79.10% HTML 19.77% Nix 0.45% JavaScript 0.68%

bayes-league's People

Contributors

jluttine avatar

Watchers

 avatar  avatar  avatar

bayes-league's Issues

Improve UI/UX

Make it mobile friendly and better looking. And easier to use.

Improve player page

  • Show ranking history
  • Show match history and how the results compare to the expected results

Match result surprpiseness and effect on ranking score

For a single player: The "effect" of each match to the player's ranking could be shown by using derivatives: The derivative of the log-likelihood of the match result w.r.t. the player's ranking score tells how "strongly" the result is pushing the score to one way or another - or if it's in balance (zero derivative). The derivatives of the matches should sum to zero. The scale is arbitrary so it doesn't tell anything to the user but the relative magnitudes and the sign tell something.

For a match as a whole: Show a measure that tells how much of the probability mass has lower probability density than the actual result. 100% is the most probable result. Maybe values below something like 5% would then be interesting.

Optional authentication

Add a possibility for simple authentication. Authenticated users can add players, matches, results etc. Other users have read-only access.

What would be a good authentication mechanism?

  • Username and password? A bit heavy. Requires registration and user management.
  • Token/passphrase in the URL? It's easy to lose the full-access URL.. Perhaps only registered users can create leagues and they could then have those URLs visible under their user accounts. For now, the site admin would have that access. Or, alternatively, the admin URL is created for a email address and can be recovered anytime by requesting the admin URL as an email to the address given when the league was created.
  • Password protection? Easy to give to others and possible to remember. Not very safe because the passwords would most likely be very weak.
  • What else?

Bonus points for winning a period

A league can define default bonus points for winning a period. Also, each stage can override these bonus points.

For instance:

  • 0 bonus points for winning a period in calibration stage
  • 2 bonus points for winning a period in group stage
  • 0 bonus points for winning a period in play-offs

Note: The relevant rankings must be updated when bonus points are modified.

Stages and ranking history

Add a possibility to designate a match into a stage (e.g., group stage round 1, quarter-final stage, semi-final stage, etc).

For each stage, save the ranking so the ranking history can be explored based on stages. ("What was the ranking after the third round?")

Add dependencies among the stages so that a stage can have "parent" stages which means that the matches from those stages are taken into account as well. This way stages can also be independent of each other. For instance, groups A and B can be independent but the rounds within each group depend on the previous rounds:

  • Group A Round 1 -> Group A Round 2 -> Group A Round 3
  • Group B Round 1 -> Group B Round 2 -> Group B Round 3

Then, a group can have multiple parents so that, for instance, the playoffs can depend on the group stages:

  • Group A Round 3 & Group B Round 3 -> Quarter-finals

Is it possible to guarantee that it's acyclic in the database? Perhaps add a custom validator.. But still be prepared to handle cycles without hanging indefinitely.

In the ranking page, one can see the latest overall ranking which shows all players and takes into account all matches. But there should be tabs/links for each stage as well so one can see the ranking of a stage.

Whenever a match is edited or added, all the stage ranking and its child stage rankings need to be updated.

Automatic match pairing

Add a button which creates a set of matches based on the current ranking.

Provide:

  • Number of players in each team
  • Number of matches per player, that is, the number of rounds
  • Optional: A phase/stage (e.g., calibration games, group stage games, etc)

Constraints:

  • The teams and the players in the teams should be as equally good as possible
  • Minimize the number of times a player plays with or against a same player
  • The number matches should be the same for all players

Result:

  • Matches are created

Delete players

Add a button for deleting a player in the player editing page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.