xpag.buffers.buffer.DefaultEpisodicBuffer#

class DefaultEpisodicBuffer(max_episode_steps, buffer_size, sampler)#

Bases: EpisodicBuffer

Methods

init_buffer

insert

Inserts a transition in the buffer

load

pre_sample

sample

Uses the sampler to returns a batch of transitions

save

store_done

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