[tune] Fix small bug in experiment_analysis (#5365)

* [tune] Fix small bug in experiment_analysis

_experiment_state was not set as an attribute of ExperimentAnalysis

* Update python/ray/tune/analysis/experiment_analysis.py

Co-Authored-By: Richard Liaw <rliaw@berkeley.edu>
This commit is contained in:
Michael GumpandRichard Liaw authored and Richard Liaw committed 2019-08-05 13:19:30 -07:00
1 parent 134c6bd128
commit 67f9e225cf
1 file changed
+1
@@ -185,6 +185,7 @@ class ExperimentAnalysis(Analysis):
"""
with open(experiment_checkpoint_path) as f:
_experiment_state = json.load(f)
self._experiment_state = _experiment_state
if "checkpoints" not in _experiment_state:
raise TuneError("Experiment state invalid; no checkpoints found.")