From 2306def81df66b34ff3d0e43edb551d104b21740 Mon Sep 17 00:00:00 2001 From: recursix Date: Wed, 27 Nov 2024 15:08:08 -0500 Subject: [PATCH] Enhance README with examples for loading experiment results --- README.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/README.md b/README.md index 959eb8c8..fd85c002 100644 --- a/README.md +++ b/README.md @@ -183,7 +183,14 @@ The class [`ExpResult`](https://github.com/ServiceNow/BrowserGym/blob/da26a5849d ```python from agentlab.analyze import inspect_results + +# load the summary of all experiments of the study in a dataframe result_df = inspect_results.load_result_df("path/to/your/study") + +# load the detailed results of the 1st experiment +exp_result = bgym.ExpResult(result_df["exp_dir"][0]) +step_0_screenshot = exp_result.screenshots[0] +step_0_action = exp_result.steps_info[0].action ```