Skip to content

Commit b115b27

Browse files
authored
Merge pull request #160 from ServiceNow/update-readme
Enhance README with examples for loading experiment results
2 parents 5ec4eba + 2306def commit b115b27

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,14 @@ The class [`ExpResult`](https://github.com/ServiceNow/BrowserGym/blob/da26a5849d
183183

184184
```python
185185
from agentlab.analyze import inspect_results
186+
187+
# load the summary of all experiments of the study in a dataframe
186188
result_df = inspect_results.load_result_df("path/to/your/study")
189+
190+
# load the detailed results of the 1st experiment
191+
exp_result = bgym.ExpResult(result_df["exp_dir"][0])
192+
step_0_screenshot = exp_result.screenshots[0]
193+
step_0_action = exp_result.steps_info[0].action
187194
```
188195

189196

0 commit comments

Comments
 (0)