[tune] use dated experiment dir per default (#11104)

This commit is contained in:
Kai Fricke
2020-09-30 22:43:59 +01:00
committed by GitHub
parent f0dba6bd2b
commit c77cfaa5ad
9 changed files with 82 additions and 17 deletions
+5
View File
@@ -5,6 +5,7 @@ import inspect
import threading
import time
from collections import defaultdict, deque, Mapping, Sequence
from datetime import datetime
from threading import Thread
import numpy as np
@@ -153,6 +154,10 @@ class Tee(object):
self.stream2.flush(*args, **kwargs)
def date_str():
return datetime.today().strftime("%Y-%m-%d_%H-%M-%S")
def env_integer(key, default):
# TODO(rliaw): move into ray.constants
if key in os.environ: