0Pricing
MLOps Academy · Lección

Promueva automáticamente solo si supera la línea base

Condicione la promoción a la comparación entre champion y challenger.

Promueva automáticamente solo si supera la línea base es una lección gratuita de MLOps Academy en CoddyKit. Esta es la lección 3 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de MLOps Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de MLOps Academy incluye 4 lecciones en total.

Partes de esta lección aún no han sido traducidas y se muestran en inglés.

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 > baseline

Add 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.01

Pick 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. ✅

Preguntas frecuentes

¿La lección «Promueva automáticamente solo si supera la línea base» es gratis?

Sí — el texto completo de «Promueva automáticamente solo si supera la línea base» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de MLOps Academy, actualiza a CoddyKit PRO. El curso de MLOps Academy incluye 4 lecciones en total.

¿Qué aprenderé en «Promueva automáticamente solo si supera la línea base»?

Condicione la promoción a la comparación entre champion y challenger. Practicas MLOps Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.

¿Necesito experiencia previa para empezar MLOps Academy?

No se requiere experiencia previa. MLOps Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 3 de 4.

¿Cuánto tiempo toma la lección «Promueva automáticamente solo si supera la línea base»?

La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.

¿Puedo escribir y ejecutar código en esta lección de MLOps Academy?

Sí. Cada lección de MLOps Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.

Todas las lecciones de este curso

  1. Reentrenamiento programado frente a activado por eventos
  2. Orqueste el reentrenamiento con Airflow
  3. Promueva automáticamente solo si supera la línea base
  4. Mantenga a una persona en el proceso
← Volver a MLOps Academy