mirror of
https://github.com/wassname/ray.git
synced 2026-07-07 19:25:39 +08:00
[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:
committed by
Richard Liaw
parent
134c6bd128
commit
67f9e225cf
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user