Reinforcement Learning, Ciencia De Dados, Data Science, Machine Learning.
self.smap[self.state] prev_state_idx = self.smap[self.prev_state] current_q = self.q_values[state_idx, :] greedy_action = argmax(current_q) self.q_values[prev_state_idx, self.prev_action] += self.alpha*( reward + self.gamma*self.q_values[state_idx,greedy_action] - self.q_values[prev_state_idx,