BatchSafe

class coba.environments.BatchSafe

Make a filter agnostic to batching.

Constructors

__init__(filter: EnvironmentFilter) None

Instantiate a BatchSafe filter.

Parameters:

filter – The filter to make agnostic to batching.

Methods

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

Apply filter to an Environment’s interactions.

Attributes

params

Parameters describing the modification.