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