gameanalysis.regret module¶
A module for computing regret and social welfare of profiles
Returns the maximum role symmetric mixed social welfare profile
Parameters: - grid_points (int > 1, optional) – The number of grid points to use for mixture seeds. two implies just pure mixtures, more will be denser, but scales exponentially with the dimension.
- random_restarts (int, optional) – The number of random initializations.
- processes (int, optional) – Number of processes to use when finding Nash equilibria. The game needs to be pickleable.
Returns the maximum social welfare over the known profiles.
If by_role is specified, then max social welfare applies to each role independently. If there are no profiles with full payoff data for a role, an arbitrary profile will be returned.
Returns the social welfare of a mixed strategy profile
-
gameanalysis.regret.
mixture_deviation_gains
(game, mix)[source]¶ Returns all the gains from deviation from a mixed strategy
The result is ordered by role, then strategy.
Returns the social welfare of a pure strategy profile in game