SequentialIGL

class coba.evaluators.SequentialIGL

Sequential evaluation for IGL learners.

Constructors

__init__(record: Sequence[Literal['reward', 'feedback', 'time', 'prob', 'action', 'context', 'actions', 'rewards', 'feedbacks']] = ['reward', 'feedback'], seed: int | None = None) None

Instantiate SequentialIGL learners.

Parameters:
  • record – Variables to record for each learner interaction.

  • seed – Determine which action is played when learners return an action PMF.

Methods

evaluate(environment: Environment | None, learner: Learner | None) Iterable[Mapping[Any, Any]]

Evaluate the learner on the given interactions.

Parameters:
  • environment – The Environment we want to evaluate against.

  • learner – The Learner that we wish to evaluate.

Returns:

Evaluation results

Attributes

params