[tune] Allow relative local_dir at tune.run() (#4734)

This commit is contained in:
Peng Zhenghao
2019-08-10 16:49:34 -07:00
committed by Richard Liaw
parent a1d2e17623
commit 983f3c83d8
3 changed files with 171 additions and 2 deletions
+4 -2
View File
@@ -96,7 +96,8 @@ class Experiment(object):
"config": config,
"resources_per_trial": resources_per_trial,
"num_samples": num_samples,
"local_dir": os.path.expanduser(local_dir or DEFAULT_RESULTS_DIR),
"local_dir": os.path.abspath(
os.path.expanduser(local_dir or DEFAULT_RESULTS_DIR)),
"upload_dir": upload_dir,
"trial_name_creator": trial_name_creator,
"loggers": loggers,
@@ -107,7 +108,8 @@ class Experiment(object):
"checkpoint_score_attr": checkpoint_score_attr,
"export_formats": export_formats or [],
"max_failures": max_failures,
"restore": restore
"restore": os.path.abspath(os.path.expanduser(restore))
if restore else None
}
self.name = name or run_identifier