Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.MixedBehaviorProfile.is_defined_at#

MixedBehaviorProfile.is_defined_at(infoset: Infoset | str) bool#

Returns whether the profile has probabilities defined at the information set. A profile can be well-defined if probabilities are not specified at some information sets, as long as those information sets are reached with zero probability.

Parameters:

infoset (Infoset or str) – The information set to check. If a string is passed, the information set is determined by finding the information set with that label, if any.

Raises:
  • MismatchError – If infoset is an Infoset from a different game.

  • KeyError – If infoset is a string and no information set in the game has that label.