الترقية التلقائية فقط عند التفوق على خط الأساس
اربط الترقية بمقارنة النموذج المتصدر بالمنافس.
الترقية التلقائية فقط عند التفوق على خط الأساس درس مجاني في MLOps Academy على CoddyKit. هذا هو الدرس 3 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MLOps Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MLOps Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Newer Is Not Always Better
A freshly retrained model can be worse than the one in production. Never promote a new model blindly just because it is newer.
Champion vs Challenger
The live model is the champion; the new candidate is the challenger. Promotion is a contest the challenger must win on the metrics.
Define the Baseline
Your baseline is the current champion score on a fixed evaluation set. The challenger has to clearly beat that number to earn promotion.
Evaluate on the Same Data
Score both models on the identical, held-out test set. A fair comparison only counts when nothing else changed between them.
A Promotion Gate
Wrap the decision in a check that returns true only if the challenger wins. This gate compares the two scores directly.
def should_promote(new, baseline):
return new > baselineAdd a Margin
Tiny gains can be noise, so require a real margin. Demanding at least a 1% lift avoids churning the production model for nothing.
def should_promote(new, baseline):
return new >= baseline + 0.01Pick the Right Metric
Compare on the metric that matters for your task, like F1 or AUC, not just raw accuracy. The wrong metric promotes the wrong model.
Wire It Into the Pipeline
Put the gate right after evaluation in your DAG. If the challenger loses, the pipeline stops and the champion stays live.
Promote in the Registry
Winning means moving the model stage to Production in the registry. This transition is the one action that changes what users get served.
client.transition_model_version_stage(
name="fraud", version=7, stage="Production")Log the Decision
Record both scores and the outcome every run. That audit trail explains later why a model was or was not promoted.
Guard Against Bad Data
A challenger can look amazing because the test set leaked or shrank. Sanity-check the evaluation before trusting any promotion.
Quick Check
When should the new challenger model be auto-promoted?
Recap
You gated promotion on results: compare challenger to champion on the same data, require a margin, then transition the winner in the registry. ✅
الأسئلة الشائعة
هل درس «الترقية التلقائية فقط عند التفوق على خط الأساس» مجاني؟
نعم — نص درس «الترقية التلقائية فقط عند التفوق على خط الأساس» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MLOps Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MLOps Academy 4 دروس في المجموع.
ماذا ستتعلم في «الترقية التلقائية فقط عند التفوق على خط الأساس»؟
اربط الترقية بمقارنة النموذج المتصدر بالمنافس. تتمرن على MLOps Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ MLOps Academy؟
لا تُشترط خبرة سابقة. MLOps Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 3 من أصل 4.
كم من الوقت يستغرق درس «الترقية التلقائية فقط عند التفوق على خط الأساس»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس MLOps Academy هذا؟
نعم. كل درس في MLOps Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- إعادة التدريب وفق جدول أو وفق مشغّل
- تنسيق إعادة التدريب باستخدام Airflow
- الترقية التلقائية فقط عند التفوق على خط الأساس
- أبقِ الإنسان ضمن الحلقة