Batch
- class coba.environments.Batch
Batch interactions.
Constructors
- __init__(batch_size: int | None, batch_type: Literal['list', 'torch'] = 'list') None
Instantiate a Batch filter.
- Parameters:
batch_size – The number of interactions in a batched interaction.
batch_type – The type of batch for interaction values.
Methods
- filter(interactions: Iterable[Interaction]) Iterable[Interaction]
Apply filter to an Environment’s interactions.
Attributes
- params