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.1.tar.gz (34.3 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.1-py3-none-any.whl (44.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rstt-0.4.1.tar.gz
  • Upload date:
  • Size: 34.3 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.1.tar.gz
Algorithm Hash digest
SHA256 e5153e1e22678ce369a4c41b9cbafd61180f63983e01c5d3450a4c50b60130a1
MD5 777cd66b25ddd5f94e1de2ab41f45d85
BLAKE2b-256 a7e9b3cd02834300fe2e47c46ec3b75bb81fbc55100f7f0b40651867c7172b3e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: rstt-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 44.9 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e6d8c0b12436ac87e8a630cb6c288e528ac51ca981fb876d849b0336bc3aa43f
MD5 e965b6dddd3bfa442841acb2df31ce5d
BLAKE2b-256 8aaa91bb84e14efe5c90f316a42c304aad3bb68b98744a7f2acf1d5189e3c407

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