From 41a16c55ef22eb2a276bbd3a6ed7e9e0fb9e1af0 Mon Sep 17 00:00:00 2001 From: ztangent Date: Thu, 4 Jul 2019 13:48:08 +0800 Subject: [PATCH] [tune] Fixed bug with joining experiment_path twice. (#5106) --- python/ray/tune/analysis/experiment_analysis.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ray/tune/analysis/experiment_analysis.py b/python/ray/tune/analysis/experiment_analysis.py index a3c246aba..2fe9a9d46 100644 --- a/python/ray/tune/analysis/experiment_analysis.py +++ b/python/ray/tune/analysis/experiment_analysis.py @@ -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: