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

@@ -142,16 +142,6 @@ class AgentInterface(object):
"""
raise NotImplementedError("")
# TODO-remove - this is a temporary flow, used by the trainer worker, duplicated from observe() - need to create
# an external trainer flow reusing the existing flow and methods [e.g. observe(), step(), act()]
def emulate_act_on_trainer(self, action: ActionType) -> ActionInfo:
"""
This emulates the act using the transition obtained from the rollout worker on the training worker
in case of distributed training.
:return: A tuple containing the actual action
"""
raise NotImplementedError("")
def collect_savers(self, parent_path_suffix: str) -> SaverCollection:
"""
Collect all of agent savers