What is MLOps and why does monitoring matter?
MLOps applies DevOps practices to machine learning: versioning data, code and models; automating training and deployment; and monitoring models in production.
Key components:
- Experiment tracking and reproducibility, for example MLflow or Weights and Biases.
- Feature stores for consistent training and serving features.
- CI/CD for retraining, testing and rollout with canary or shadow deployment.
- A model registry with lineage and approval.
- Monitoring for performance, latency and cost.
Monitoring matters because models decay. Data drift is when input distributions shift away from training data; concept drift is when the relationship between inputs and target changes. Both degrade accuracy even when the code is unchanged.
Alert on drift, prediction distributions and business KPIs, and define a retraining trigger. Labels may arrive late, so use proxies until ground truth is available.