[tune] Fixed bug with joining experiment_path twice. (#5106)

This commit is contained in:
ztangent 2019-07-04 13:48:08 +08:00 committed by Richard Liaw
parent 1a543a6571
commit 41a16c55ef

View file

@ -66,7 +66,7 @@ class ExperimentAnalysis(object):
"No experiment state found in {}!".format(experiment_path))
experiment_filename = max(
list(experiment_state_paths)) # if more than one, pick latest
with open(os.path.join(experiment_path, experiment_filename)) as f:
with open(experiment_filename) as f:
self._experiment_state = json.load(f)
if "checkpoints" not in self._experiment_state: