0Pricing
MLOps Academy · บทเรียน

เลื่อนโมเดลที่ดีที่สุดขึ้น Production

เลือกโมเดลที่ชนะและจัดให้อยู่ในระยะพร้อมให้บริการ

เลื่อนโมเดลที่ดีที่สุดขึ้น Production เป็นบทเรียน MLOps Academy ฟรีบน CoddyKit นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7 บทเรียนนี้เป็นส่วนหนึ่งของเส้นทางการเรียน MLOps Academy และความก้าวหน้าของคุณจะซิงค์ข้ามเว็บและแอป CoddyKit คอร์ส MLOps Academy มีบทเรียนทั้งหมด 4 บทเรียน

บางส่วนของบทเรียนนี้ยังไม่ได้รับการแปล และแสดงเป็นภาษาอังกฤษ

Pick a Winner

You now have several registered versions. Promotion is choosing which one your service should actually use, then marking it as Production. 🏆

List the Versions

Use the MlflowClient to fetch every version of a model so you can compare them before choosing.

from mlflow import MlflowClient

client = MlflowClient()
versions = client.search_model_versions("name='churn-classifier'")

Compare by Metric

Each version links back to its run, so you can read that run's accuracy and pick the highest scorer programmatically.

for v in versions:
    run = client.get_run(v.run_id)
    print(v.version, run.data.metrics["accuracy"])

Aliases Over Stages

Newer MLflow uses named aliases like champion instead of fixed stages. An alias is a movable pointer to one chosen version.

Set the Champion Alias

Point the champion alias at your best version. Your serving code can then always ask for champion and get the current pick.

client.set_registered_model_alias(
    name="churn-classifier",
    alias="champion",
    version="3",
)

Stages Still Work

On older setups you transition a version to the Production stage instead. The idea is the same: mark which one is live.

client.transition_model_version_stage(
    name="churn-classifier",
    version=3,
    stage="Production",
)

Archive the Old One

When you promote a new version, move the previous live one aside. With stages that means Archived; with aliases you simply reassign the pointer.

Tag the Decision

Add a tag recording why this version won. Future teammates will thank you for the breadcrumb when they audit the choice.

client.set_model_version_tag(
    "churn-classifier", "3",
    "approved_by", "data-team",
)

Promotion Is Reversible

Because old versions are kept, you can re-point champion back to a previous version instantly if the new one misbehaves. 🔁

Quick Check

What is the main advantage of a model alias like champion?

Serving Stays Decoupled

The big win: your API never names version 3. It asks for the champion, so promotion is a registry change, not a code deploy.

Promote With Confidence

Compare, then promote only what beats the current pick. Tying promotion to metrics keeps weak models out of production.

Recap: Choosing the Live Model

You listed versions, compared metrics, set the champion alias, tagged the reason, and kept the choice reversible. That is safe promotion. ✅

คำถามที่พบบ่อย

บทเรียน “เลื่อนโมเดลที่ดีที่สุดขึ้น Production” ฟรีหรือไม่

ใช่ — ข้อความเต็มของ “เลื่อนโมเดลที่ดีที่สุดขึ้น Production” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 24/7) และปลดล็อคส่วนที่เหลือของคอร์ส MLOps Academy ให้อัปเกรดเป็น CoddyKit PRO คอร์ส MLOps Academy มีบทเรียนทั้งหมด 4 บทเรียน

คุณจะเรียนรู้อะไรในบทเรียน “เลื่อนโมเดลที่ดีที่สุดขึ้น Production”

เลือกโมเดลที่ชนะและจัดให้อยู่ในระยะพร้อมให้บริการ คุณปฏิบัติ MLOps Academy ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 24/7 ตอบคำถามของคุณขณะที่คุณไปผ่านบทเรียน

คุณต้องมีประสบการณ์ก่อนที่จะเริ่มเรียน MLOps Academy หรือไม่

ไม่จำเป็นต้องมีประสบการณ์มาก่อน MLOps Academy บน CoddyKit ออกแบบมาสำหรับผู้เริ่มต้นไปจนถึงผู้เรียนขั้นสูง คุณสามารถเริ่มต้นที่นี่หรือเริ่มจากตัวแรกและเรียนด้วยความเร็วของคุณเอง นี่คือบทเรียนที่ 2 จากทั้งหมด 4 บทเรียน

บทเรียน “เลื่อนโมเดลที่ดีที่สุดขึ้น Production” ใช้เวลานานแค่ไหน

บทเรียน CoddyKit ส่วนใหญ่ใช้เวลาประมาณ 5–10 นาที แต่ละบทเรียนจึงสั้นและเป็นแบบโต้ตอบ คุณสามารถก้าวหน้าอย่างต่อเนื่องและกลับมาเรียนต่อจากตรงที่เพิ่งหยุดบนเว็บและแอปได้เลย

ฉันเขียนและรันโค้ดในบทเรียน MLOps Academy นี้ได้ไหม

ได้ บทเรียน MLOps Academy ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. ฝึกโมเดลและบันทึกเข้ารีจิสทรี
  2. เลื่อนโมเดลที่ดีที่สุดขึ้น Production
  3. ให้บริการโมเดล Production
  4. ติดตามการเดินทางไปกลับของผลพยากรณ์
← กลับไปที่ MLOps Academy