Repr

class coba.environments.Repr

Change representation of categorical data.

Constructors

__init__(categorical_context: Literal['onehot', 'onehot_tuple', 'string'] | None = None, categorical_actions: Literal['onehot', 'onehot_tuple', 'string'] | None = None) None

Instantiate a Repr filter.

Parameters:
  • cat_context – How to represent categorical data in contexts.

  • cat_actions – How to represent categorical data in actions.

Methods

filter(interactions: Iterable[Interaction]) Iterable[Interaction]

Apply filter to an Environment’s interactions.

Attributes

params