mirror of
https://github.com/wassname/ray.git
synced 2026-08-10 12:30:14 +08:00
[tune] Allow relative local_dir at tune.run() (#4734)
This commit is contained in:
committed by
Richard Liaw
parent
a1d2e17623
commit
983f3c83d8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user