xpag.buffers.buffer.DefaultBuffer#

class DefaultBuffer(buffer_size, sampler)#

Bases: Buffer

Methods

init_buffer

insert

Inserts a transition in the buffer

load

pre_sample

sample

Uses the sampler to returns a batch of transitions

save

insert(step)#

Inserts a transition in the buffer

sample(batch_size)#

Uses the sampler to returns a batch of transitions