Repository navigation
How to map ExperimentEvaluationRun to ExperimentRun #8820
|
I need to export all the data from an experiment. The goal is to have a df with all the experiment data, including evaluation annotations. Using |
Replies: 3 comments 4 replies
|
You can map an To export all experiment data, including evaluation annotations, as a single DataFrame, use the import phoenix as px
# Retrieve the experiment (replace with your experiment_id)
experiment = px.Client().get_experiment(experiment_id="your-experiment-id")
# Export all experiment data, including evaluation annotations
df = experiment.get_evaluations()The resulting DataFrame will have one row per experiment run, with columns for run data (input, output, etc.) and evaluation results (score, label, explanation, etc.). The join is handled for you by matching This approach works even if some runs don’t have evaluations—they’ll still appear in the DataFrame, with evaluation columns as To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
|
Hey @andstor there are a few ways I believe this is sorta possible today. Mainly trying to understand the use-case for the experiment as a dataframe. Happy to support whatever use-case you may have. |
|
Hi @mikeldking, yes, that works — thanks! Btw, it would also be great to have a way to log aggregate metrics and display them on the experiments overview page. |

Quick update on this. We'll make the annotations that are the result of annotations available in in the client. #8918