Ratings

class sol.models.rating.Rating(**kwargs)

A particular rating a tournment can be related to.

default_deviation

Default value of deviation (PHI) for the Glicko2 algorithm.

default_rate

Default value of rate (MU) for the Glicko2 algorithm.

default_volatility

Default value of volatility (SIGMA) for the Glicko2 algorithm.

description

Description of the rating.

getPlayerRating(player, before=None)

Return the rate of a player

Parameters:
  • player – a Player instance
  • before – a date instance
Return type:

an instance of glicko2.Rating

If before is not specified fetch the latest rate, otherwise the most recent one preceeding before.

The method considers all ratings at the same level of this one or better.

idrating

Primary key.

isPhantom(competitor)

Determine whether the given competitor is actually a Phantom.

Parameters:competitor – a Competitor instance

This is needed because someone use a concrete player as Phantom, to customize its name (not everybody have a good sense of humor...)

level

Rating level.

rates

List of rates.

recompute(mindate=None, scratch=False)

Recompute the whole rating.

Parameters:
  • mindate – either None or a date
  • scratch – a boolean, True to recompute from scratch

If mindate is given, recompute the rating ignoring the tourneys before that date.

serialize(serializer)

Reduce a single rating to a simple dictionary

tau

Value of TAU for the Glicko2 algorithm.

time_span

Return the time span of this rating.

tourneys

Tourneys using this rating.

Previous topic

Tourneys

Next topic

Rates

This Page