Module generic_replay_buffer

Source
Expand description

Generic implementation of replay buffers for reinforcement learning.

This module provides a flexible and efficient implementation of replay buffers that can handle arbitrary observation and action types. It supports both standard experience replay and prioritized experience replay (PER).

§Key Components

§Features

  • Generic type support for observations and actions
  • Efficient batch processing
  • Prioritized experience replay with importance sampling
  • Configurable weight normalization
  • Step processing for non-vectorized environments

Structs§

GenericTransitionBatch
A generic structure representing transitions in reinforcement learning.
IwScheduler
Scheduler of the exponent of importance weight for PER.
PerConfig
Configuration for Prioritized Experience Replay (PER).
SimpleReplayBuffer
A generic implementation of a replay buffer for reinforcement learning.
SimpleReplayBufferConfig
Configuration for the replay buffer.
SimpleStepProcessor
A generic implementation of the StepProcessor trait.
SimpleStepProcessorConfig
Configuration for the simple step processor.

Enums§

WeightNormalizer
Specifies how to normalize the importance weights in a prioritized batch.

Traits§

BatchBase
A trait defining basic batch operations.