- bugfix not rewarding properly

- bugfix not set value properly after learn
This commit is contained in:
2024-06-11 21:15:55 +02:00
parent e8d07f9d84
commit 7a1156125c
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ class MachinePlayer(APlayer):
rev_hist = list(reversed(self.episode_history))
for hist in rev_hist:
d = self.calc_value(hist['state'], hist['next_state'])
if hist['is_exp']:
if not hist['is_exp']:
self.set_value(hist['state'], d)
def calc_value(self, state: np.array, next_state: np.array):