Reinforcement Learning, Ciencia De Dados, Data Science, Machine Learning.
self.prev_action] ) self.prev_state = self.state self.prev_action = action return action def end(self, reward): """ agent dealing with episode termination """ state_idx = self.smap[self.state] prev_state_idx = self.smap[self.prev_state] self.q_values[prev_state_idx, self.prev_action] +=