xpag.buffers.buffer.EpisodicBuffer#
- class EpisodicBuffer(buffer_size, sampler)#
Bases:
Buffer
Base class for episodic buffers
Methods
Inserts a transition in the buffer
Uses the sampler to returns a batch of transitions
Stores the episodes that are done
- abstract insert(step)#
Inserts a transition in the buffer
- abstract sample(batch_size)#
Uses the sampler to returns a batch of transitions
- Return type:
Dict
[str
,Union
[ndarray
,Array
]]
- abstract store_done(done)#
Stores the episodes that are done