[tune] HyperOpt Support (v2) (#1763)

This commit is contained in:
Richard Liaw
2018-04-04 11:08:26 -07:00
committed by GitHub
parent 5a9e83761d
commit 888e70f1be
13 changed files with 348 additions and 44 deletions
+2 -2
View File
@@ -335,8 +335,8 @@ class Trial(object):
def update_last_result(self, result, terminate=False):
if terminate:
result = result._replace(done=True)
if terminate or (
self.verbose and
if self.verbose and (
terminate or
time.time() - self.last_debug > DEBUG_PRINT_INTERVAL):
print("TrainingResult for {}:".format(self))
print(" {}".format(pretty_print(result).replace("\n", "\n ")))