# Retrieving the results\_df on a crashed ray tune run

**URL:** <https://discuss.ray.io/t/retrieving-the-results-df-on-a-crashed-ray-tune-run/353>\
**Category:** Ray Tune\
**Created:** [December 30, 2020, 2:39pm UTC](https://discuss.ray.io/t/retrieving-the-results-df-on-a-crashed-ray-tune-run/353 "2020-12-30T14:39:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luke](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/luke/32/205_2.png) [@luke](https://discuss.ray.io/u/luke)\
**Post date:** [December 30, 2020, 2:39pm UTC](https://discuss.ray.io/t/retrieving-the-results-df-on-a-crashed-ray-tune-run/353/1 "2020-12-30T14:39:19Z")

</div>

Hi, newbie question here

I am running ray tune for some hyperparameter optimization. Everything I’ve done is on my local machine. After about 15 hours my optimization experiment crashed. My code did not save the results\_df object (from analysis) because the exception occured inside `tune.run`.

The documentation online suggests that you can rebuild the results dataframe after the fact using the checkpoint files. However when I tried the examples, my code fails.  
I’ve tried following the examples on this page, using the Analysis and ExperimentalAnalysis classes:

> **[Analysis (tune.analysis) — Ray v1.2.0.dev0](https://docs.ray.io/en/master/tune/api_docs/analysis.html#experimentanalysis-tune-experimentanalysis)**

```python
xa = ExperimentAnalysis(experiment_checkpoint_path=os.path.expanduser("~/ray_results/ax/my_checkpoint.json"))
xa.results_df
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/luke/.virtualenvs/myenv/lib/python3.8/site-packages/ray/tune/analysis/experiment_analysis.py", line 500, in results_df
    [
TypeError: 'NoneType' object is not iterable

a = Analysis(os.path.expanduser("~/ray_results/ax/"))
a.results_df
Traceback (most recent call last):
  File "<string>", line 1, in <module>
AttributeError: 'Analysis' object has no attribute 'results_df'

```

What am I doing wrong here?

Thanks
