ReplayBuffer#
- class hybrid_aif.train.ReplayBuffer[source]#
Bases:
DatasetRing-storage replay buffer with whole-episode FIFO eviction. Host-side.
Both a
Datasetand aWriter. Storage is one numpy ring per column ofmax_stepsrows, allocated from the first episode’s schema; clips never cross episode boundaries.dump(path, format)persists through any registered format.Arguments:
max_steps: capacity budget in raw steps.num_steps: observation frames per clip (Dataset windowing).frameskip: stride between observation frames within a clip.sampler: pluggableSamplerused bysample(); uniform over valid clips by default.seed: seed for the default rng handed to the sampler.