Reinforcement Learning, Ciencia De Dados, Data Science, Machine Learning.
self.state+10 if not self.state in self.lower_edge else self.state if self.state == self.pos_target: self.reward = 10 self.terminal = True self.state = self.initial_state else: self.reward = -1 self.terminal = False return self.state, self.reward, self.terminal, {} Inicialmente, vamos testar um