xpag.buffers.buffer.DefaultEpisodicBuffer#
- class DefaultEpisodicBuffer(max_episode_steps, buffer_size, sampler)#
Bases:
EpisodicBuffer
Methods
init_buffer
Inserts a transition in the buffer
load
pre_sample
Uses the sampler to returns a batch of transitions
save
Stores the episodes that are done
- insert(step)#
Inserts a transition in the buffer
- sample(batch_size)#
Uses the sampler to returns a batch of transitions
- store_done(done)#
Stores the episodes that are done