pygambit.gambit.MixedBehavior.__getitem__#
- MixedBehavior.__getitem__()#
Access a component of the mixed behavior specified by index.
- Parameters:
index (Infoset, Action, or str) –
The part of the mixed behavior to return:
If index is an
Infoset, returns aMixedActionover the infoset’s actionsIf index is an
Action, returns the probability the action is playedIf index is a
str, attempts to resolve the referenced object by first searching for an infoset with that label, and then for an action with that label.
- Raises:
MismatchError – If infoset not an
Infosetfor the mixed behavior’s player, or action is not anActionfor the mixed behavior’s player.
