def on_episode_begin(self, episode, logs):
assert episode not in self.metrics<EOL>assert episode not in self.starts<EOL>self.metrics[episode] = []<EOL>self.starts[episode] = timeit.default_timer()<EOL>
Initialize metrics at the beginning of each episode