AI Cloud Architect

Monitoring discriminative ML models using Amazon SageMaker AI with MLflow

AWSHow-to by Sandeep Raveesh-Babu and Sara van de MoosdijkAWS Artificial Intelligence Blog

Implementing a data and model monitoring solution is necessary to maintain prediction accuracy and help achieve the best outcome for your machine learning use case. This post shows how you can use open source Evidently together with Amazon SageMaker AI to generate monitoring reports, organize and compare the results in MLflow, scale through pipelines, and trigger drift notifications.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A reference architecture uses open source Evidently with SageMaker AI batch transform or endpoints to measure data drift and model quality, storing reports in MLflow and alerting via SNS.

Who it is for

ML engineers running discriminative models on SageMaker AI who need drift monitoring, retraining triggers or a dashboard for model metrics.

Key points

  • Evidently calculates data drift and model quality metrics but not model drift; drift comparison needs custom code, as the sample notes.
  • Batch monitoring runs as a pipeline on an EventBridge schedule; real-time endpoints need data capture enabled.
  • The sample uses a Bank Marketing XGBoost classifier and a notebook-based walkthrough with a GitHub repository.

Timeline

  1. Read firstAmazon SageMaker AI announces serverless MLflow capability for faster AI development · AWS · Announcement
  2. This postMonitoring discriminative ML models using Amazon SageMaker AI with MLflow

Go deeper