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

Making stop condition optional by using a flag (#113)

* apply stop condition flag (default: ignore the stop condition)
This commit is contained in:
Gal Leibovich
2018-11-18 13:37:39 +02:00
committed by Gal Novik
parent 449bcfb4e1
commit 9fd4d55623
3 changed files with 18 additions and 6 deletions

View File

@@ -669,4 +669,4 @@ class GraphManager(object):
self.memory_backend = get_memory_backend(self.agent_params.memory.memory_backend_params)
def should_stop(self) -> bool:
return all([manager.should_stop() for manager in self.level_managers])
return self.task_parameters.apply_stop_condition and all([manager.should_stop() for manager in self.level_managers])