pygambit.gambit.MixedBehaviorProfile#
- class pygambit.gambit.MixedBehaviorProfile#
Represents a mixed behavior profile over the actions in a
Game.A mixed behavior profile is a dict-like object, mapping each action at each information set in a game to the corresponding probability with which the action is played, conditional on that information set being reached.
Mixed behavior profiles may represent probabilities as either exact (rational) numbers, or floating-point numbers. These may not be combined in the same mixed behavior profile.
Changed in version 16.1.0: Profiles are accessed as dict-like objects; indexing by integer player, infoset, or action indices is no longer supported.
See also
Game.mixed_behavior_profileCreates a new mixed behavior profile on a game.
MixedStrategyProfileRepresents a mixed strategy profile over a
Game.
Methods
Returns the Lyapunov value (see [McK91]) of the strategy profile.
Returns the maximum regret at any information set.
as_float()Creates a floating-point copy of this mixed behavior profile.
Returns a MixedStrategyProfile which is equivalent to the profile.
copy()Creates a copy of the behavior strategy profile.
Returns the Lyapunov value (see [McK91]) of the strategy profile.
Returns the maximum regret at any information set.
Create a profile with the same action proportions as this one, but normalised so probabilities for each infoset sum to one.
set_mixed_action(index, distribution[, sparse])Sets the mixed action at the information set containing index.
Attributes
Returns the regret to playing each action, if all other players play according to the profile, grouped by information set.
Returns the expected payoff to the player of playing each action, conditional on reaching its information set, if all players play according to the profile, grouped by information set.
Returns, for each node, the conditional probability that the node is reached, given that its information set (or, at a chance node, its event) is reached, if all players play according to the profile.
Returns the probability with which each chance event is reached, if all players play according to the profile.
The game on which this mixed behavior profile is defined.
Returns the expected payoff to each player conditional on play reaching each node, if all players play according to the profile, grouped by player.
Returns the probability with which each information set is reached, if all players play according to the profile.
Returns the regret to the player for playing their mixed action at each information set, if all other players play according to the profile.
Returns the expected payoff to the player conditional on reaching each information set, if all players play according to the profile.
Returns the expected payoff to each player, if all players play according to the profile.
Returns the probability with which each node is reached, if all players play according to the profile.
