サービス · Machine Learning · AIF-C01 の発展
Amazon SageMaker Model Monitor
Capture endpoint traffic, compare it with a baseline on a schedule, and alarm on violations.
このレッスンはまだ翻訳されていないため、英語で表示しています。
AI Practitionerで学んだこと
- Model Monitor watches a deployed model for drift in data, model quality and bias.
- It sits next to Pipelines and Model Registry among the SageMaker AI MLOps tools.
- It has been closed to new customers since July 30, 2026.
Traffic is captured, checked on a schedule against the baseline, and a violation can start retraining.
Data quality
- Compares
- Input feature statistics against the baseline
- Needs
- Captured inputs
Model quality
- Compares
- Accuracy, precision, recall and similar metrics
- Needs
- Predictions plus ground truth labels
Bias drift
- Compares
- Bias metrics over time
- Needs
- Captured data and a Clarify baseline
Feature attribution drift
- Compares
- Ranking of feature importance
- Needs
- Captured inputs and a Clarify baseline
| Monitor | Compares | Needs |
|---|---|---|
| Data quality | Input feature statistics against the baseline | Captured inputs |
| Model quality | Accuracy, precision, recall and similar metrics | Predictions plus ground truth labels |
| Bias drift | Bias metrics over time | Captured data and a Clarify baseline |
| Feature attribution drift | Ranking of feature importance | Captured inputs and a Clarify baseline |
1 / 2
Data quality
- Compares
- Input feature statistics against the baseline
- Needs
- Captured inputs
Model quality
- Compares
- Accuracy, precision, recall and similar metrics
- Needs
- Predictions plus ground truth labels
| Monitor | Compares | Needs |
|---|---|---|
| Data quality | Input feature statistics against the baseline | Captured inputs |
| Model quality | Accuracy, precision, recall and similar metrics | Predictions plus ground truth labels |
2 / 2
Bias drift
- Compares
- Bias metrics over time
- Needs
- Captured data and a Clarify baseline
Feature attribution drift
- Compares
- Ranking of feature importance
- Needs
- Captured inputs and a Clarify baseline
| Monitor | Compares | Needs |
|---|---|---|
| Bias drift | Bias metrics over time | Captured data and a Clarify baseline |
| Feature attribution drift | Ranking of feature importance | Captured inputs and a Clarify baseline |
概要
Model Monitor needs four parts. Data capture is switched on in the endpoint configuration, with a sampling percentage and an S3 location, and SageMaker AI saves each request and response there. A baseline job on the training data writes statistics.json and constraints.json, which describe normal. A monitoring schedule runs the checks. Then you read the results.
概要
A schedule starts a SageMaker Processing job at each interval, from every hour up to every 24 hours. It compares the captured data with the baseline and writes constraint_violations.json to S3, plus statistics.json for data quality. A run ends as Completed, CompletedWithViolations or Failed. With CloudWatch metrics enabled, each feature gets metrics, so an alarm can notify an SNS topic or invoke Lambda, and an EventBridge rule can start a SageMaker Pipelines run that retrains the model.
概要
Limits: tabular data only, single-model endpoints only (not multi-model), and capture stops when disk use is high, so keep it under 75 percent. When no built-in monitor fits, bring your own container, add a post-processing script, or run your own check in a scheduled Processing job. Status: Model Monitor and SageMaker Clarify have been closed to new customers since July 30, 2026. Existing customers can keep using both. Bias drift and feature attribution drift monitors use Clarify. New projects build the same checks themselves, as the next lesson shows.
覚えること
- Capture: sampling percentage and S3 destination, set on the endpoint configuration.
- Baseline files: statistics.json and constraints.json. Results: constraint_violations.json.
- Tabular data and single-model endpoints only.
試験では
- “Detect live inputs drifting from the training data” points to Model Monitor data quality.
- “Accuracy falls and labels arrive later” points to model quality monitoring, which merges ground truth with captured predictions.
- “Start retraining when drift is found” points to a CloudWatch alarm or EventBridge rule that starts a Pipelines run.
- “Monitor a multi-model endpoint” points to a custom check.
混同しやすいもの
- Detecting data distribution shiftTell covariate, label and concept shift apart, and pick a test that compares live data with the training baseline.
- CloudWatch metrics and dashboards for MLKnow which endpoint and training metrics exist, where they live, and how to turn them into dashboards and alarms.
- Performance baselines and drift detectionCompare live data and predictions with a baseline made from training data, and raise an alert on violations.