Module 6 · step 4 of 4 · Monitoring and drift
Close the loop
A retraining policy, reproducibility and model documentation: what makes a deployed model maintainable.
Concept7 min
In this step you check that your deployed churn model is maintainable: you trace where it came from in mlflow and review the retraining policy it would follow. It matters because a model is never finished at deployment. The cycle is data, training, deployment, monitoring and back to data, and an incident is a bad moment to improvise how the last step feeds the first.
The idea
A retraining policy answers four questions. What triggers a retrain: a calendar, a drift alert or a drop in a measured outcome? What data does it use: the latest dataset version, with the labels that have arrived? What must the new model prove: a better primary metric by a stated margin, not merely a different one? And what happens if it does not: the current model stays and the reason is recorded. A schedule suits slowly changing data; for sudden change, retrain when an alert opens.
Reproducibility means you can rebuild any past model and explain it. That needs the exact data version, pipeline version, parameters, random seed and artifact, all linked.
Model documentation is the short text that travels with a model: what it predicts, which data trained it, how it was evaluated, its known limits and its owner.
Step by step
- Open the run you registered from. On its Log tab, find the Request snapshot: every parameter used, recorded with the run.
- Select Models in the sidebar, open your churn model and read Versions. Each version is immutable and carries a checksum.
- Select View lineage in the model's ... menu, or open Lineage, and follow the chain from data source to dataset to run to model version to deployment. This answers "which data trained the model in production?".
- On the run, select Model card to see metrics and plots on one page. On a candidate page, Export model card saves a Markdown summary of metrics, parameters and pipeline structure to share.
- Open your deployment, select Monitor and read the Scheduled retraining card again: Frequency, Primary metric, Required improvement, Decision log. Write down in one line what your policy would be.
- To refresh the model by hand, you have two routes. In the Scheduled retraining card, Run now (enabled once you have saved an enabled schedule) opens Retrain now; Start retrain trains a new model and replaces the deployed one only if it beats it by the configured margin, and the Decision log records why. Only workspace admins can save these settings or run a retrain. Or open the pipeline once its dataset has a new version and train again from Review & run: you get a new run to compare, register and deploy yourself.
The demo blocks saving retraining and drift settings and creating alert rules ("Scheduled and automatic jobs are not available in the demo."), but Lineage and the model card work. Use them on your registered churn model.
Common mistakes
- Retraining on a timer with no margin, so a noisy "improvement" replaces a good model. When the guard works, the Decision log says the improvement "does not reach the required margin".
- Retraining without fresh labels: the new model learns from the same stale picture.
- Keeping the model but losing the data or pipeline version behind it. Lineage exposes any gap.
- Writing documentation once and never updating it when the model changes.
As a data scientist
Decide the policy while things are calm: trigger, data, margin and owner. Keep every model one click from its data and parameters, so "why did the score drop?" has an answer. An unowned alert is an ignored alert, so name a person for each deployment. To finish, read Retraining, Reproducibility and Model documentation.
Checkpoint
You should see the Lineage tab of your registered churn model with the chain from data to run to model version, and be able to say where the model came from in under a minute.
Theory to read next
Read in the docs
That was the last step
You can take the certification exam now, or any other time.