- bugfix not rewarding properly
- bugfix not set value properly after learn
This commit is contained in:
+1
-1
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user