## Why MLOps is critical for production ML
Gartner research shows 87% of ML projects never reach production. The primary cause is absent MLOps practices: models degrade undetected, releases take weeks instead of hours, and data distributions shift without alerting.
## MLOps stack for UK startups
Recommended stack for teams of 3–10 data scientists: MLflow (experiment tracking + model registry), DVC (data versioning + pipeline reproducibility), GitHub Actions (CI/CD triggered on new dataset versions or commits), Evidently (drift monitoring). Cloud: AWS SageMaker or Azure ML depending on existing agreements.
## CI/CD for ML models: key differences from software CI/CD
Unlike code, an ML model can degrade without any code changes — simply due to shifting input data distributions. Therefore ML CI includes not only unit tests but also data validation (Great Expectations), model performance regression tests, and A/B comparison of challenger vs champion models before promotion.
## Monitoring data drift in production
Evidently AI or WhyLabs detect feature drift (shifting input distributions) and prediction drift (shifting output distributions) without requiring real-time ground-truth labels. Standard alert thresholds: PSI > 0.2 for numerical features, chi-square p < 0.05 for categorical ones.
## Automated retraining: when and how
Retraining triggers: schedule (weekly retraining on new data), performance-based (accuracy drops below threshold), drift-based (Evidently alert fires). For UK financial sector, FCA requires a full audit trail of all model versions — MLflow model registry combined with S3/GCS versioning satisfies this automatically.
Related Codeworth Services
Need Help with Implementation?
The Codeworth team is ready to implement these ideas in your project. Free consultation.
Discuss the ProjectCodeworth team specialist.