0Pricing
MLOps Academy · Aula

Promova o melhor modelo para Production

Escolha o vencedor e prepare-o para disponibilização.

Promova o melhor modelo para Production é uma aula grátis de MLOps Academy no CoddyKit. Esta é a aula 2 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de MLOps Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de MLOps Academy inclui 4 aulas no total.

Partes desta aula ainda não foram traduzidas e aparecem em inglês.

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

Perguntas Frequentes

A aula “Promova o melhor modelo para Production” é grátis?

Sim — o texto completo de “Promova o melhor modelo para Production” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de MLOps Academy, atualize para CoddyKit PRO. O curso de MLOps Academy inclui 4 aulas no total.

O que vou aprender em “Promova o melhor modelo para Production”?

Escolha o vencedor e prepare-o para disponibilização. Você pratica MLOps Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.

Preciso ter experiência prévia para começar MLOps Academy?

Nenhuma experiência prévia é necessária. MLOps Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 2 de 4.

Quanto tempo leva a aula “Promova o melhor modelo para Production”?

A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.

Posso escrever e executar código nesta aula de MLOps Academy?

Sim. Cada aula de MLOps Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.

Todas as aulas deste curso

  1. Treine e registre no registro
  2. Promova o melhor modelo para Production
  3. Disponibilize o modelo de Production
  4. Rastreie uma ida e volta de previsão
← Voltar para MLOps Academy