pygambit.gambit.MixedBehavior.__setitem__#
- MixedBehavior.__setitem__(index: Infoset | str | Action, value: Any) None #
Sets a component of the mixed behavior to value.
- Parameters:
index (Infoset, Action, or str) –
The component of the mixed behavior to set:
If index is an Infoset, sets the mixed action over that infoset’s actions
If index is an Action, sets the probability the action is played
If 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
Infoset
for the mixed behavior’s player, or action is not anAction
for the mixed behavior’s player.