[tune] Change log handling for Tune (#3661)

Also provides a small retry mechanism for a transient error as reported
by #3340.

Closes #3653.
This commit is contained in:
Richard Liaw
2019-01-06 13:20:10 -08:00
committed by GitHub
parent 681e8cd3fd
commit 8934e37a78
5 changed files with 33 additions and 11 deletions
+2 -3
View File
@@ -355,9 +355,8 @@ class Trial(object):
result.update(done=True)
if self.verbose and (terminate or time.time() - self.last_debug >
DEBUG_PRINT_INTERVAL):
logger.info("Result for {}:".format(self))
logger.info(" {}".format(
pretty_print(result).replace("\n", "\n ")))
print("Result for {}:".format(self))
print(" {}".format(pretty_print(result).replace("\n", "\n ")))
self.last_debug = time.time()
self.last_result = result
self.last_update_time = time.time()