public interface ReplayBuffer
RlEnv.Step
s so that they can be trained on.
Using a replay buffer ensures that a variety of states are trained on for every training batch making the training more stable.
Modifier and Type | Method and Description |
---|---|
void |
addStep(RlEnv.Step step)
Adds a new step to the buffer.
|
RlEnv.Step[] |
getBatch()
Returns a batch of steps from this buffer.
|
RlEnv.Step[] getBatch()
void addStep(RlEnv.Step step)
step
- the step to add