def end_of_episode(self): ''' Summary: Resets the agents prior pointers. ''' if self.anneal: self._anneal() Agent.reset(self)
def reset(self): self.step_number = 0 self.episode_number = 0 if self.custom_q_init: self.q_func = self.custom_q_init else: self.q_func = defaultdict( lambda: defaultdict(lambda: self.default_q)) Agent.reset(self)
def reset(self): self.step_number = 0 self.q_func = defaultdict(lambda: self.default_q) Agent.reset(self)