ترقية النموذج الفائز أو التراجع عنه
انشر النموذج الأفضل أو ارجع عنه بطريقة نظيفة.
ترقية النموذج الفائز أو التراجع عنه درس مجاني في MLOps Academy على CoddyKit. هذا هو الدرس 4 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في MLOps Academy، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة MLOps Academy 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
The Test Is Over
Your A/B test has run its full window and the numbers are in. Now comes the decision: promote the challenger or roll it back to the champion. 🚦
Decide Against Your Plan
Pull up the success criteria you wrote before the test. The challenger wins only if it beats the threshold on the primary metric and breaks no guardrail.
Promotion Means Production
To promote a model is to make it the new champion. With a registry, that often means moving the winning version into the Production stage.
Promote via the Registry
MLflow lets you flip the winning version to Production in one call, so your serving layer picks it up.
from mlflow import MlflowClient
client = MlflowClient()
client.transition_model_version_stage("fraud", version=7, stage="Production")Ramp, Do Not Slam
Even a clear winner deserves a careful rollout. Raise its traffic from ten percent toward one hundred gradually while you watch the live metrics.
When to Roll Back
Roll back if the challenger loses, ties, or trips a guardrail like a latency spike. A tie is not a win, so the safe default is to keep the champion.
Rollback Must Be Instant
A clean rollback is just pointing traffic back at the old version. Because the champion is still registered, recovery should take seconds, not a rebuild. ⏪
Keep the Old Champion
Never delete the previous champion the moment you promote. Move it to the Archived stage instead, so a fast revert is always one step away.
Watch After You Ship
Promotion is not the finish line. Keep monitoring the new champion, since live behavior at full traffic can still surprise you after the test ends.
Record the Decision
Log who decided, the metrics, and the verdict. This audit trail lets you explain later exactly why this model went live or got reverted.
A Losing Test Still Wins
Rolling back is not failure. You protected users from a worse model and learned something real, which is exactly what the experiment was for. ✅
Quick Check
Let us decide what to do after the results land.
Recap
Decide against your written plan: promote a clear, guardrail-safe winner via the registry, ramp gradually, and keep the old champion for an instant rollback. 🎯
الأسئلة الشائعة
هل درس «ترقية النموذج الفائز أو التراجع عنه» مجاني؟
نعم — نص درس «ترقية النموذج الفائز أو التراجع عنه» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة MLOps Academy، انتقل إلى CoddyKit PRO. تتضمن دورة MLOps Academy 4 دروس في المجموع.
ماذا ستتعلم في «ترقية النموذج الفائز أو التراجع عنه»؟
انشر النموذج الأفضل أو ارجع عنه بطريقة نظيفة. تتمرن على MLOps Academy مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ MLOps Academy؟
لا تُشترط خبرة سابقة. MLOps Academy على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 4 من أصل 4.
كم من الوقت يستغرق درس «ترقية النموذج الفائز أو التراجع عنه»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس MLOps Academy هذا؟
نعم. كل درس في MLOps Academy يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- تقسيم حركة المرور بين إصدارات النموذج
- اختيار المقاييس المهمة
- قراءة الدلالة الإحصائية بموضوعية
- ترقية النموذج الفائز أو التراجع عنه