ray.rllib.utils.replay_buffers.reservoir_replay_buffer.ReservoirReplayBuffer.add#
- ReservoirReplayBuffer.add(batch: SampleBatch | MultiAgentBatch | Dict[str, Any], **kwargs) None #
Adds a batch of experiences or other data to this buffer.
Splits batch into chunks of timesteps, sequences or episodes, depending on
self._storage_unit
. Callsself._add_single_batch
to add resulting slices to the buffer storage.- Parameters:
batch – The batch to add.
**kwargs – Forward compatibility kwargs.