You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Classic normal form game with a 2x2 payoff matrix repeatedly played over n steps.
infinite_matrix_game
Special case of the classic normal form game that calculates an exact value, simulating an infinite game.
coin_game
Classic grid-world social dilemma environment.
env_type
Name
Description
sequential
Classic normal form game with a 2x2 payoff matrix repeatedly played over n steps.
meta
Meta-learning regime, where an agent learns via meta-learning.
egocentric
Name
Description
bool
If True, sets an agent in the Coin Game environment to an egocentric view, empirically found to be more appropriate for other shaping. Else, sets an agent in to a non-egocentric view, in line with the original version.
env_discount
Name
Description
Numeric
Meta-learning discount factor. Between 0 and 1.
payoff
Name
Description
Array
Custom payoff for game.
Example:
# if playing Coin Game
payoff: [[1, 1, -2], [1, 1, -2]]
# if playing Matrix Games
payoff: [[-1, -1], [-3, 0], [0, -3], [-2, -2]]
Docstrings are under constuction. Please check back later.