LearnerThrottler
python
LearnerThrottler(config: DQNExperimentConfiguration) -> NoneThrottler for the learner to ensure training doesn't outpace data collection.
Initialize the LearnerThrottler.
Parameters:
config(DQNExperimentConfiguration) – The experiment configuration.
Methods
should_step
python
should_step(env_steps: int, current_iterations: int, replay_buffer: ReplayBuffer) -> boolDetermine if the learner should perform a training step.
Parameters:
env_steps(int) – Total environment steps.current_iterations(int) – Total learner iterations.replay_buffer(ReplayBuffer) – The experience replay buffer.
Returns:
bool– True if the learner should step, False otherwise.
Values
config
python
config = config