pygambit.gambit.MixedBehaviorProfile.__getitem__#
- MixedBehaviorProfile.__getitem__()#
Returns a probability, mixed agent strategy, or mixed behavior strategy.
- Parameters:
index (Player, Infoset, Action, or str) –
The part of the profile to return:
If index is a Player, returns a
MixedBehaviorStrategyover the player’s infosetsIf index is an Infoset, returns a
MixedAgentStrategyover the infoset’s actionsIf index is an Action, returns the probability the action is playe
If index is a str, attempts to resolve the referenced object by first searching for a player with that label, then for an infoset with that label, and finally for an action with that label.
- Raises:
MismatchError – If player is a
Playerfrom a different game, infoset is anInfosetfrom a different game, or action is anActionfrom a different game.`
