You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/sagemaker/sagemaker-model-monitoring/README.md
+196-3Lines changed: 196 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,52 @@ Available monitoring types:
13
13
* Model Bias
14
14
* Model Explainability
15
15
16
-
Note that updating parameters will require replacing resources. Deployments may be delayed until any
17
-
running monitoring jobs complete (and the resources can be destroyed).
16
+
The module includes an optional automated baseline generation feature that creates baseline statistics and constraints for your monitoring jobs.
18
17
19
18
### Architecture
20
19
21
20

22
21
22
+
1.**SageMaker Endpoint** - The deployed model endpoint being monitored
23
+
-**WARNING**: Data capture must be enabled for monitoring to function
-**SageMaker Monitoring Jobs**: Compare captured data against baselines
41
+
- Supports data quality, model quality, model bias, and model explainability monitoring
42
+
43
+
5.**Monitoring Outputs** - Results and alerts
44
+
-**Violations Report**: Detailed violations file emitted to S3
45
+
-**CloudWatch Metrics**: Some monitoring types emit metrics (e.g., data quality drift)
46
+
-**CloudWatch Alarms**: Can be configured based on emitted metrics for automated alerting
47
+
48
+
### Baseline Generation
49
+
50
+
The module includes an optional automated baseline generation feature that creates baseline statistics and constraints for your monitoring jobs.
51
+
52
+

53
+
54
+
When you provide training data, the module will:
55
+
56
+
1. Deploy a Step Functions state machine that orchestrates baseline generation
57
+
2. Run SageMaker Processing jobs to analyze your training data
58
+
3. Generate baseline statistics and constraints files
59
+
4. Store the baseline artifacts in your specified S3 location
60
+
5. Schedule automatic baseline regeneration (default: daily at 2 AM UTC)
61
+
23
62
## Inputs/Outputs
24
63
25
64
### Input Parameters
@@ -45,6 +84,19 @@ One or more of:
45
84
-`sagemaker_project_name`: SageMaker project name
46
85
-`tags`: Dictionary of tags to apply to resources
47
86
87
+
#### Baseline Generation Parameters (Optional)
88
+
89
+
These parameters control the automated baseline generation feature:
90
+
91
+
-`baseline_training_data_s3_uri`: S3 URI for the training data used to generate baselines (e.g., `s3://bucket/path/to/training-data.csv`)
92
+
-`baseline_output_data_s3_uri`: S3 URI where baseline statistics and constraints will be stored (e.g., `s3://bucket/path/to/baseline-output/`)
93
+
-`baseline_instance_count`: Number of ML compute instances for baseline generation (default: 1)
94
+
-`baseline_instance_type`: ML compute instance type for baseline generation (default: "ml.m5.xlarge")
95
+
-`baseline_volume_size_gb`: Size of ML storage volume in GB for baseline generation (default: 20)
96
+
-`baseline_max_runtime_seconds`: Maximum runtime in seconds for baseline generation jobs (default: 3600)
97
+
98
+
**Note**: If `baseline_training_data_s3_uri` and `baseline_output_data_s3_uri` are provided, the module will automatically create a Step Functions state machine to generate and update baselines for all enabled monitoring types.
The baseline generation Step Functions state machine accepts events with the following structure. You can manually trigger the state machine with these event payloads:
0 commit comments