D4 - monitoring, drift & model performance

TRAIN
 ↓
DEPLOY
 ↓
MONITOR
 ↓
detect problem
 ↓
investigate
 ↓
RETRAIN / FIX / ROLLBACK

data monitoring

performance monitoring

schema monitoring

segment monitoring

model version monitoring

alert

MLOPs loop

                     DATA
                       │
                       ▼
                    TRAIN
                       │
                       ▼
                    MLFLOW
                       │
                       ▼
                   EVALUATE
                       │
                       ▼
                   REGISTER
                       │
                       ▼
                    DEPLOY
                       │
                       ▼
                    SERVE
                       │
                       ▼
                   MONITOR
		 ┌─────────┼─────────┐
		 ▼                           ▼                           ▼
	  service                       data                    model
	   health                       drift                    quality
		 │                           │                           │
		  └─────────┼─────────┘
					   ▼
					ALERT
					   │
					   ▼
				   DIAGNOSE
					│
	   ┌───────────┼───────────┐
	   ▼                                 ▼                                 ▼
   fix service                      fix data                     retrain
									   │
									   ▼
								NEW CANDIDATE
									   │
									   ▼
								  quality gates
									   │
									   ▼
								   deployment

monitoring hierarchy

  1. SERVICE: is the endpoint/job working?
  2. DATA QUALITY: are inputs valid?
  3. DATA/PREDICTION DRIFT: has distribution changed?
  4. MODEL PERFORMANCE: when labels arrive, is predictive quality degrading?
  5. CONCEPT: has the real X→Y relationship changed?