Skip to main content

Ranking Simulation Testing Tool

Project description

RSTT

ALPHA STATE - usable but frequent changes

Rstt stands for Ranking Simulation Testing Tool. A package to test how ranking and seedings of players, behave regarding different format of competitions. It has features to closely study interaction between ranking design, matchmaking algorithm and competitiors models.

The goal is to offer an inituitive syntax to build complex simulation that output syntethetic dataset for analysis. The package has been designed with modularity and inheritance in mind. Users should be able to build upon the package and intergrete their own ranking, matchmaking or player models with ease.

Installation

The package is available on PyPi

Concept

The rstt package is build on 5 fundamental abstraction:

  • Player: who participate in games and are items in rankings

  • Match: which represent more the notion of an event than a physical game. It is a container for player to which a Score is assigned only once.

  • Solver: Protocol with a solve(Game) that assign a score to a game instance. Usually implements probabilistic model based on player level.

  • Competition: Automated game generator protocol

  • Ranking: Ranking is a tuple (standing, rating system, inference method, observer) that estimate a skill value (or point) for player.

The following concepts are directly related to the notion of Ranking. There are of interest only if you work on ranking design rather than ranking performances and properties.

  • Standing: is an hybrid container that implement a triplet relationship between (rank, player, point) and behave like a List[Player], Dict[Player, rank] and Dict[rank, Player].

  • RatingSystem: store data computed by ranking for player

  • Inferer: in charge of statistical inference, implement a rate([ratings], [Score]) -> [ratings] method

  • Observer: manage the workflow between the observation that triggers the update of a ranking to the new computed ratings of involved players while maintaining the players rank in the Standing.

Basic code example

'first_simulation.py' in the examples folder provide a small piece of code involving all the different notion of the package. For people interested in making their own ranking algorithm run in rstt simulation (or design with the package), we recommand to take a look at the source code of 'BasicOS' in 'src/ranking/standard.py' file. It is a class wrapping the openskill package to fit the ranking interface of rstt.

Repository Structure

  • rstt: Contains the package source code. The package is in a usable state. It still contains bugs. Problematic coding styles. The competitions.py module should be refactor and its classes should be written in the scheduler.tournaments.py module and respecting its cnew oncepts. Same goes for the solver.py module.

  • test: contains pytest code for maintaining src. It has problematic coding style and does not cover the entire package.

  • examples: contains notebook illustrating fundamentals of the rstt package. I believe it is in a decent state. The Standing notebook does introduce the notion of ranking but does not realy show all its functionality. There is no illustration for devellopers on how to extends the rstt concepts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rstt-0.3.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rstt-0.3.1-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file rstt-0.3.1.tar.gz.

File metadata

  • Download URL: rstt-0.3.1.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.2 Darwin/21.6.0

File hashes

Hashes for rstt-0.3.1.tar.gz
Algorithm Hash digest
SHA256 6066c94c76cee45599047f829aa42fded238b165243e6f2c6fc8bc7d584ed9a3
MD5 143a4792120b8002e91d3a2802615dbd
BLAKE2b-256 4f786c4f22de1d2394c8ea8cc60b54afc12a865eb7666391d182e9c07dbd1d33

See more details on using hashes here.

File details

Details for the file rstt-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: rstt-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.2 Darwin/21.6.0

File hashes

Hashes for rstt-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff9e880768cb6d228a95430b4db830cf6012eeb4cb95e6c2885afef913458b3c
MD5 2a6c1cfbb1259d86f02ba1cd97c62782
BLAKE2b-256 1c61b77774212898b7c9db81a40efdcbbdd75c020c77dc7d85e406a886a5b8ef

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page