def reset(self): """ Reset the attributes to initial state (called between instances). Save the previous model. :return: None """ LRMax.reset(self) n_bound_use = self.n_rmax + self.n_lip if n_bound_use > 0: # Save ratio ratio_rmax_bound_use = self.n_rmax / n_bound_use ratio_lip_bound_use = self.n_lip / n_bound_use if self.write_data: self.write(init=False, ratio_rmax_bound_use=ratio_rmax_bound_use, ratio_lip_bound_use=ratio_lip_bound_use) # Reset self.n_rmax = 0 self.n_lip = 0 # Reset recorded variables between MDPs self.discounted_return = 0. self.total_return = 0. self.n_time_steps = 0 self.update_time_steps = []
def reset(self): """ Reset the attributes to initial state (called between instances). Save the previous model. :return: None """ self.update_sa_memory() LRMax.reset(self)
def reset(self): """ Reset the attributes to initial state (called between instances). Save the previous model. :return: None """ LRMax.reset(self) ''' n_bound_use = self.n_rmax + self.n_lip if n_bound_use > 0: if self.write_data: self.write(init=False) ''' # Reset counters self.reset_counters() # Reset recorded variables between MDPs self.discounted_return = 0. self.total_return = 0. self.n_time_steps = 0
def reset(self): self.time_step = 0 self.time_step_counter = [] LRMax.reset(self)