View evaluation results - Amazon SageMaker AI
Services or capabilities described in AWS documentation might vary by Region. To see the differences applicable to the AWS European Sovereign Cloud Region, see the AWS European Sovereign Cloud User Guide.

View evaluation results

When a job finishes, you can read its scores for each sample, the result of each criterion, and the job-level summary.

View results in SageMaker AI optimizer

The best way to review and act on results is SageMaker AI optimizer. In a project, use the Leaderboard and Evals views to compare your candidate models side by side against your Evaluation Criteria. When no model meets your Evaluation Criteria, the agent recommends the next fix, and you can deploy the model that wins. For more information, see SageMaker AI optimizer, Projects, Leaderboard, and Review evaluation results in SageMaker AI optimizer.

Note

If you use the SageMaker AI optimizer agent, the evaluation results are also published to your preferred MLflow app. For more information, see Accelerate generative AI development using managed MLflow on Amazon SageMaker AI.

Check job status

Call DescribeJob with the job name. The response includes the job status and a ServiceOutput section that SageMaker AI fills in as the job runs:

  • EvaluationResultsOutputPath – The Amazon S3 URI of the results of the job. It appears after the job completes successfully.

  • MlflowDetails – The experiment and run names and IDs, if you configured MLflow.

Read the output files

The job writes its results under the output location that you set, either in the job or in your Evaluation Criteria. The output includes the following files:

File Contents
run_summary_record.json The job-level result, including the verdict and the aggregated metrics.
samples.parquet One row for each sample, with the input, the output, whether the sample passed, and the scores from each Evaluator.
spans.parquet One row for each span in the evaluation trace of a sample.
events.parquet One row for each evaluation result, with the Evaluator name, score, label, and explanation.

A sample that an Evaluator can't score, such as a judge response that can't be parsed or that is cut off at the token limit, is recorded as unscored. It doesn't count as a pass or a fail.

Next steps