mirror of
https://github.com/gryf/coach.git
synced 2025-12-17 19:20:19 +01:00
Adding should_train helper and should_train in graph_manager
This commit is contained in:
committed by
zach dwiel
parent
a2e57a44f1
commit
a7f5442015
@@ -260,3 +260,6 @@ class LevelManager(EnvironmentInterface):
|
||||
:return:
|
||||
"""
|
||||
[agent.sync() for agent in self.agents.values()]
|
||||
|
||||
def should_train(self) -> bool:
|
||||
return any([agent._should_train_helper() for agent in self.agents.values()])
|
||||
|
||||
Reference in New Issue
Block a user