QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.game.GameTournament Class Reference

Store all directional payoffs from a common Red versus Blue tournament. More...

Public Member Functions

 metrics (self, side, strategies=None, *, win_threshold=.5, clusters=4, seed=0)
 Score a group of strategies using the whole tournament's reference panel.

Detailed Description

Store all directional payoffs from a common Red versus Blue tournament.

A read-only payoff matrix indexed by Red, Blue, and scoring side.

Definition at line 90 of file game.py.

Member Function Documentation

◆ metrics()

qdpy.algorithms.game.GameTournament.metrics ( self,
side,
strategies = None,
* ,
win_threshold = .5,
clusters = 4,
seed = 0 )

Score a group of strategies using the whole tournament's reference panel.

Use all opponents. Fit coverage clusters over all complete rows on this side.

:param side: Either "red" or "blue".
:param strategies: Optional indices into that side's strategies.
:param win_threshold: A score must exceed this threshold to win.
:param clusters: Maximum number of reference behavior clusters.
:param seed: Seed for the reference clustering.

Definition at line 98 of file game.py.


The documentation for this class was generated from the following file: