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.4.0.tar.gz (32.9 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.4.0-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rstt-0.4.0.tar.gz
  • Upload date:
  • Size: 32.9 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.4.0.tar.gz
Algorithm Hash digest
SHA256 d5eab5818c5f768541ad14c0e790f995c984891e1358bfb071625d39dd708176
MD5 baeb5aeaddb1de354e9c30f292f416ef
BLAKE2b-256 2883f3dc92459f4e67ddf6788def4499d7bb67d126a8188d978eff1c73e5e8af

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rstt-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 42.7 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 035327f535b6f63e54baa3559bf945b891605659a64c96262793443fb67b57d2
MD5 9e775aaefe3aff7883d6e36d667320ae
BLAKE2b-256 bf7b75859a79d1f6fde6ff3f7bc2b4d20855010bf9ea03be193f8f96104f9c1a

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