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_profile

Creates a new mixed behavior profile on a game.

MixedStrategyProfile

Represents a mixed strategy profile over a Game.

Methods

agent_liap_value()

Returns the Lyapunov value (see [McK91]) of the strategy profile.

agent_max_regret()

Returns the maximum regret at any information set.

as_float()

Creates a floating-point copy of this mixed behavior profile.

as_strategy()

Returns a MixedStrategyProfile which is equivalent to the profile.

copy()

Creates a copy of the behavior strategy profile.

liap_value()

Returns the Lyapunov value (see [McK91]) of the strategy profile.

max_regret()

Returns the maximum regret at any information set.

normalize()

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

action_regrets

Returns the regret to playing each action, if all other players play according to the profile, grouped by information set.

action_values

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.

beliefs

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.

event_probs

Returns the probability with which each chance event is reached, if all players play according to the profile.

game

The game on which this mixed behavior profile is defined.

history_values

Returns the expected payoff to each player conditional on play reaching each node, if all players play according to the profile, grouped by player.

infoset_probs

Returns the probability with which each information set is reached, if all players play according to the profile.

infoset_regrets

Returns the regret to the player for playing their mixed action at each information set, if all other players play according to the profile.

infoset_values

Returns the expected payoff to the player conditional on reaching each information set, if all players play according to the profile.

payoffs

Returns the expected payoff to each player, if all players play according to the profile.

realiz_probs

Returns the probability with which each node is reached, if all players play according to the profile.