pygambit.gambit.MixedBehaviorProfile.infoset_regret#
- MixedBehaviorProfile.infoset_regret(infoset: Infoset | str) float | Rational#
Returns the regret to the player for playing their mixed action at infoset, if all other players play according to the profile.
The regret is defined as the difference between the payoff of the best-response action and the payoff of the player’s mixed action. Payoffs are computed conditional on reaching the information set. By convention, the regret is always non-negative.
Added in version 16.2.0.
- Parameters:
infoset (Infoset or str) – The information set to get the regret at. If a string is passed, the information set is determined by finding the information set with that label, if any.
- Raises:
MismatchError – If infoset is an
Infosetfrom a different game.KeyError – If infoset is a string and no information set in the game has that label.
See also
