December 2019
Intermediate to advanced
368 pages
11h 10m
English
To use the RL evaluation mechanism we described earlier, we need a method to schedule the work task for evaluation and to monitor the results. This is implemented in the monitor_eval function, which receives the list of genomes in the population and evaluates them against the Atari game environment. This function has two essential implementation parts, both of which we'll discuss in this section:
tasks = [] for t in it: tasks.append(self.eval_async(*t, max_frames=max_frames, error_callback=error_callback)) if time.time() - tstart > logging_interval: ...
Read now
Unlock full access