pass
def reset(self):
self.state = [(1.0, 0.0) for _ in self.specification]
if self.single_state_action:
return self.state[0]
else:
return {"state{}".format(n): state for n, state in enumerate(self.state)}
def execute(self, actions):
if self.single_state_action:
After Change
def reset(self):
self.state = {action_type: (1.0, 0.0) for action_type in self.specification}
if self.single_state_action:
return next(iter(self.state.values()))
else:
return dict(self.state)