egttools.behaviors.NormalForm.TwoActions.ImperfectTFT¶
- class ImperfectTFT(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ImperfectTFT, error_probability: SupportsFloat | SupportsIndex)¶
Bases:
AbstractNFGStrategyTit for Tat with implementation errors.
Construct an Imperfect Tit for Tat strategy.
- Parameters:
error_probability (float) – Probability of choosing the opposite action by mistake.
Methods
Return the action chosen by the strategy.
Return whether the strategy is stochastic.
Return the strategy type.
- __init__(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ImperfectTFT, error_probability: SupportsFloat | SupportsIndex) None¶
Construct an Imperfect Tit for Tat strategy.
- Parameters:
error_probability (float) – Probability of choosing the opposite action by mistake.
- __new__(**kwargs)¶
- get_action(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ImperfectTFT, time_step: SupportsInt | SupportsIndex, action_prev: SupportsInt | SupportsIndex) int¶
Return the action chosen by the strategy.
- is_stochastic(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ImperfectTFT) bool¶
Return whether the strategy is stochastic.
- type(self: egttools.numerical.numerical_.behaviors.NormalForm.TwoActions.ImperfectTFT) str¶
Return the strategy type.
- __annotations__ = {}¶