Evaluate ML and AI system performance
Unlock the complete study guide.
Bundled into the existing AWS Certified Machine Learning Engineer - Associate premium course — no separate purchase.
14-day money-back guarantee — no questions asked.
Included in this chapter:
- What an evaluation compares against
- Tools closed to new customers and their replacements
- Reproducible experiments with managed MLflow
- Repeatable generative AI experiments
- Debugging training convergence
- Classification and regression metrics
- Held-out validation and k-fold cross-validation
- Text-similarity metrics for generated text
- Amazon Bedrock evaluation jobs
- Safety criteria for generated responses
- Detecting bias across groups
- Semantic and adversarial robustness
- Human evaluation and human-in-the-loop review
- Evaluating and diagnosing RAG
- Explaining predictions with SHAP
- Shadow testing a candidate variant
- Performance baselines and drift detection
Evaluation families: metric-based (labels, reference text) vs model-based vs human
| Criterion | Metric-based: labels | Metric-based: reference text | Model-based (LLM-as-a-judge) | Human evaluation |
|---|---|---|---|---|
| Output is compared against | Ground-truth labels or target values | A reference answer or reference text | Criteria you select, scored by an evaluator model | Criteria and instructions, rated by a work team |
| Typical metrics | Precision, recall, F1, ROC AUC, MAE, RMSE | BLEU, ROUGE, BERTScore, exact match | Correctness, completeness, faithfulness, harmfulness | Ratings of tone, usefulness or preference |
| Needs ground truth | Yes | Yes, as reference text | Optional; correctness and completeness use it when supplied | Optional |
| Blind spot | Cannot judge free-text quality | Lexical metrics penalize valid rewording | The evaluator model can be biased or wrong | Slow, costly and can be inconsistent |
| AWS mechanism on this page | Validation and test metrics; Bedrock automatic jobs for text classification | Bedrock automatic evaluation jobs | Bedrock judge-based and RAG evaluation jobs | Bedrock human evaluation jobs |
| Fits when | Each example has one known class label or numeric target | Output should closely match a reference | Criteria need judgment at scale | Judgment is subjective or the decision is critical |
Decision tree
Cheat sheet
Unlock with Premium — includes all practice exams and the complete study guide.
Also tested in
References
- https://docs.aws.amazon.com/aws-certification/latest/machine-learning-engineer-associate-02/machine-learning-engineer-associate-02-domain2.html
- https://docs.aws.amazon.com/aws-certification/latest/machine-learning-engineer-associate-02/machine-learning-engineer-associate-02-domain4.html
- https://docs.aws.amazon.com/prescriptive-guidance/latest/gen-ai-lifecycle-operational-excellence/dev-experimenting-quality.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-availability-change.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-availability-change.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/debugger-availability-change.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow.html
- https://docs.aws.amazon.com/ko_kr/whitepapers/latest/ml-best-practices-healthcare-life-sciences/reproducibility.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/mlflow-app-setup.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management-deploy.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation-judge.html
- https://docs.aws.amazon.com/machine-learning/latest/dg/learning-algorithm.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/ll_hyperparameters.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/debugger-built-in-rules.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/autopilot-metrics-validation.html
- https://docs.aws.amazon.com/machine-learning/latest/dg/binary-model-insights.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-accuracy-evaluation.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-report-programmatic.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/evaluation.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-metrics.html
- https://docs.aws.amazon.com/decision-guides/latest/decision-guides/genai-guide.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/model-evaluation-jobs-management-create-human.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-evaluation-metrics.html
- https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-evaluation-prompt-retrieve-generate.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-shapley-values.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-validation.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/shadow-tests.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/shadow-tests-create.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-model-quality.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/model-monitor-create-baseline.html
- https://docs.aws.amazon.com/sagemaker/latest/dg/clarify-model-monitor-feature-attribution-drift.html