monitor now returning info objects

This commit is contained in:
steffen-illium
2021-05-31 13:58:24 +02:00
parent 7b4e60b0aa
commit 403d38dc24
7 changed files with 61 additions and 59 deletions

View File

@ -189,6 +189,10 @@ class BaseFactory(gym.Env):
if self.steps >= self.max_steps:
done = True
self.monitor.set('step_reward', reward)
self.monitor.set('step', self.steps)
if done:
info.update(monitor=self.monitor)
return self.state, reward, done, info
def _is_moving_action(self, action):