เลื่อนโมเดลที่ชนะหรือย้อนกลับ
นำโมเดลที่ดีกว่าไปใช้งานหรือย้อนกลับอย่างเรียบร้อย
เลื่อนโมเดลที่ชนะหรือย้อนกลับ เป็นบทเรียน MLOps Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 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. 🎯
คำถามที่พบบ่อย
บทเรียน “เลื่อนโมเดลที่ชนะหรือย้อนกลับ” ฟรีหรือไม่
ใช่ — ข้อความเต็มของ “เลื่อนโมเดลที่ชนะหรือย้อนกลับ” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส MLOps Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส MLOps Academy มีบทเรียนทั้งหมด 4 บทเรียน
คุณจะเรียนรู้อะไรในบทเรียน “เลื่อนโมเดลที่ชนะหรือย้อนกลับ”
นำโมเดลที่ดีกว่าไปใช้งานหรือย้อนกลับอย่างเรียบร้อย คุณปฏิบัติ MLOps Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน
คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน MLOps Academy หรือไม่
ไม่จำเป็นต้องมีประสบการณ์มาก่อน MLOps Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 4 จากทั้งหมด 4 บทเรียน
บทเรียน “เลื่อนโมเดลที่ชนะหรือย้อนกลับ” ใช้เวลานานแค่ไหน
บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย
ฉันเขียนและรันโค้ดในบทเรียน MLOps Academy นี้ได้ไหม
ได้ บทเรียน MLOps Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ
บทเรียนทั้งหมดในหลักสูตรนี้
- แบ่งทราฟฟิกระหว่างโมเดลต่างเวอร์ชัน
- เลือกเมตริกที่สำคัญ
- อ่านนัยสำคัญโดยไม่หลอกตัวเอง
- เลื่อนโมเดลที่ชนะหรือย้อนกลับ