[tune] Add a time/timesteps since last restore metric (#2819)

* rsm

* always log to avoid changing schema for csv writer

* add iter since restore

* update

* criteria warn
This commit is contained in:
Eric Liang
2018-09-05 17:45:09 -07:00
committed by GitHub
parent 995ac24a2c
commit d81605e9e7
4 changed files with 48 additions and 2 deletions
+3 -1
View File
@@ -199,7 +199,9 @@ class Trial(object):
for criteria, stop_value in self.stopping_criterion.items():
if criteria not in result:
raise TuneError("Stopping Criteria not provided in result.")
raise TuneError(
"Stopping criteria {} not provided in result {}.".format(
criteria, result))
if result[criteria] >= stop_value:
return True