QDpy
Loading...
Searching...
No Matches
qdpy.algorithms.adhoc_cooperation.PartnerResponseTable Class Reference

Snapshot of ordered cross-play and the response to each partner niche. More...

Public Member Functions

 select (self, niche=None, *, observations=0, min_observations=1)
 Pick the specialist for an observed niche or fall back to the generalist.

Detailed Description

Snapshot of ordered cross-play and the response to each partner niche.

Rows are responding policies and columns are possible partner policies.

Definition at line 34 of file adhoc_cooperation.py.

Member Function Documentation

◆ select()

qdpy.algorithms.adhoc_cooperation.PartnerResponseTable.select ( self,
niche = None,
* ,
observations = 0,
min_observations = 1 )

Pick the specialist for an observed niche or fall back to the generalist.

Parameters
nicheGrid index of the estimated partner behavior, or None.
observationsNumber of partner observations used by the caller.
min_observationsEvidence required before use of a specialist.
Returns
Policy genome from the calibrated repertoire.
Return a specialist after sufficient evidence for a calibrated cell.

Definition at line 49 of file adhoc_cooperation.py.


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