pygambit.gambit.MixedBehaviorProfile.action_value#
- MixedBehaviorProfile.action_value(action: Action | str) float | Rational #
Returns the expected payoff to the player of playing an action conditional on reaching its information set, if all players play according to the profile.
- Parameters:
action (Action or str) – The action to get the payoff for. If a string is passed, the action is determined by finding the action with that label, if any.
- Raises:
MismatchError – If action is an
Action
from a different game.KeyError – If action is a string and no action in the game has that label.
ValueError – If action resolves to an action that belongs to the chance player