مكدّس MLOps الكامل
Git + DVC (code + data versioning)
↓
GitHub Actions (CI: tests, linting)
↓
MLflow (experiment tracking)
↓
MLflow Model Registry (staging → production)
↓
FastAPI + Docker (serving)
↓
Prometheus + Grafana (monitoring)
إصدار البيانات باستخدام DVC
dvc init
dvc add data/train.csv
dvc push # to S3/GCS
git add data/train.csv.dvc
git commit -m "add training data v2"
تتبع التجارب باستخدام MLflow
import mlflow
with mlflow.start_run():
mlflow.log_params(params)
mlflow.log_metrics({'auc': auc, 'f1': f1})
mlflow.sklearn.log_model(model, 'model')
بوابة إعادة التدريب التلقائية
إذا انخفض AUC في الإنتاج بأكثر من 2% → يُطلَق خط أنابيب إعادة التدريب تلقائياً.