ray.rllib.utils.replay_buffers.prioritized_replay_buffer.PrioritizedReplayBuffer.__init__#

PrioritizedReplayBuffer.__init__(capacity: int = 10000, storage_unit: str = 'timesteps', alpha: float = 1.0, **kwargs)[source]#

Initializes a PrioritizedReplayBuffer instance.

Parameters:
  • capacity – Max number of timesteps to store in the FIFO buffer. After reaching this number, older samples will be dropped to make space for new ones.

  • storage_unit – Either ‘timesteps’, ‘sequences’ or ‘episodes’. Specifies how experiences are stored.

  • alpha – How much prioritization is used (0.0=no prioritization, 1.0=full prioritization).

  • **kwargs – Forward compatibility kwargs.