1
0
mirror of https://github.com/gryf/coach.git synced 2025-12-17 19:20:19 +01:00

merge AgentInterface.emulate_act_on_trainer and AgentInterface.act

This commit is contained in:
zach dwiel
2019-04-05 11:49:09 -04:00
committed by Zach Dwiel
parent f2fead57e5
commit f8741522e4
3 changed files with 19 additions and 47 deletions

View File

@@ -313,7 +313,7 @@ class LevelManager(EnvironmentInterface):
# for i in range(self.steps_limit.num_steps):
# let the agent observe the result and decide if it wants to terminate the episode
done = acting_agent.emulate_observe_on_trainer(transition)
acting_agent.emulate_act_on_trainer(transition.action)
acting_agent.act(transition.action)
if done:
self.handle_episode_ended()