# Access the learning history

**URL:** <https://discuss.ray.io/t/access-the-learning-history/3315>\
**Category:** Ray Tune\
**Created:** [August 23, 2021, 10:40am UTC](https://discuss.ray.io/t/access-the-learning-history/3315 "2021-08-23T10:40:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LIKAN\_BLK](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@LIKAN\_BLK](https://discuss.ray.io/u/LIKAN_BLK)\
**Post date:** [August 23, 2021, 10:40am UTC](https://discuss.ray.io/t/access-the-learning-history/3315/1 "2021-08-23T10:40:40Z")

</div>

How to access the learning history of a Trial class object. i.e how to get the list of losses (and other metrics) that stores the loss for each training step. I see this information in the trail folder in result.json, but I didn’t find a way to get this info from the Trial.  
PS. Also, how to get the best loss (and its iteration number) of a Trial

---

<div class="post-metadata">

**Author:** ![amogkam](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/amogkam/32/17_2.png) [@amogkam](https://discuss.ray.io/u/amogkam)\
**Post date:** [August 23, 2021, 9:57pm UTC](https://discuss.ray.io/t/access-the-learning-history/3315/2 "2021-08-23T21:57:46Z")

</div>

Hey @LIKAN_BLK, all this info should be available in the `Analysis` object that’s returned by `tune.run`. You can see more info here [Analysis (tune.analysis) — Ray v1.6.0](https://docs.ray.io/en/latest/tune/api_docs/analysis.html)

---

<div class="post-metadata">

**Author:** ![LIKAN\_BLK](https://avatars.discourse-cdn.com/v4/letter/l/ed8c4c/32.png) [@LIKAN\_BLK](https://discuss.ray.io/u/LIKAN_BLK)\
**Post date:** [August 30, 2021, 10:40am UTC](https://discuss.ray.io/t/access-the-learning-history/3315/3 "2021-08-30T10:40:33Z")

</div>

Can you please elaborate on which properties of the ExperimentAnalysis contained the required information? Before writing here I quite thoroughly investigated this object. I found some fields, that looked like they intended to contain the required information, but they are empty.
