# Offline Evaluation from json

**URL:** <https://discuss.ray.io/t/offline-evaluation-from-json/12220>\
**Category:** Offline RL\
**Created:** [September 22, 2023, 10:04pm UTC](https://discuss.ray.io/t/offline-evaluation-from-json/12220 "2023-09-22T22:04:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kris](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kris](https://discuss.ray.io/u/kris)\
**Post date:** [September 22, 2023, 10:04pm UTC](https://discuss.ray.io/t/offline-evaluation-from-json/12220/1 "2023-09-22T22:04:09Z")

</div>

Using offline data stored in an .json for evaluation using importance sampling and weighted importance sampling. However, I run into an value error: “ValueError: eps\_id 1000 was already passed to the peek function. Make sure the dataset contains only unique episodes with unique ids.”  
However, my data set does not have repeated episode IDs beyond those in the same trajectory, for evaluation is it necessary to split these trajectories into single obs, action, and reward episodes? Or is there some other potential issue?

 ![Screenshot 2023-09-22 180344](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/8/8528d2b63c1166f0612e28864c813d09efd62f5e.png)  
 ![Screenshot 2023-09-22 180505](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/2/280c07d5ab92659733fc22480339a9e5d30af911.png)

![Screenshot 2023-09-22 180126](https://us1.discourse-cdn.com/flex020/uploads/ray/original/2X/b/be89e9d1f92f20814080673575b2bdff469e5343.png)
