xpag.buffers.buffer.DefaultEpisodicBuffer#
- class DefaultEpisodicBuffer(max_episode_steps, buffer_size, sampler)#
Bases:
EpisodicBufferMethods
init_bufferInserts a transition in the buffer
loadpre_sampleUses the sampler to returns a batch of transitions
saveStores 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