mirror of
https://github.com/gryf/coach.git
synced 2025-12-18 03:30:19 +01:00
fix for measurements in the initial state (fix for DFP)
This commit is contained in:
@@ -371,7 +371,7 @@ class Agent(object):
|
||||
'observation': observation
|
||||
}
|
||||
if self.tp.agent.use_measurements:
|
||||
if 'measurements' in self.curr_state.keys():
|
||||
if 'measurements' in self.env.state.keys():
|
||||
self.curr_state['measurements'] = self.env.state['measurements']
|
||||
else:
|
||||
self.curr_state['measurements'] = np.zeros(0)
|
||||
|
||||
Reference in New Issue
Block a user