Module 5 · step 1 of 6 · Deploying and testing
Register a model
Add the best candidate to the model registry as an immutable, numbered version.
App5 min
In this step you will register the best candidate of your run as a numbered version in the model registry, then read its status and lineage. It matters because a leaderboard row is only a result; a registered version is something you can name, deploy, audit and go back to.
The idea
A run holds many candidates and you will keep one. The registry stores that candidate as an immutable version: the fitted pipeline with its metrics, parameters and a checksum, linked to the run, dataset and pipeline version it came from. Versions are never edited. Registering again under the same name adds v2 to the same model instead of creating a second model.
Each version carries a status: staging, production or archived. A new version starts as staging, which means "registered, not yet approved". Registering is cheap; moving to production is a decision. In a full workspace, Request promote opens an approval request that a workspace admin other than you must approve in the inbox before Execute promotion can run. Archive takes a version out of production, and Roll back to this puts an older version back in production with no approval step. None of these buttons changes deployments that already serve a version.
Step by step
- Open the finished run from the previous module. If you want a summary first, select Model card in the ... menu to see the headline metrics and plots on one page.
- In the ... menu of the run, select Register best model. To register a different candidate, open its page and select Promote instead.
- Enter a name such as
churn-classifierand an optional description that says what the model predicts and which data it used. Select Register. - Select Models in the sidebar. The Registry tab lists your model with its first version.
- Open the model. Under Versions, read the number (
v1), the status, the primary metric and who registered it. - Select View lineage in the ... menu, or open the Lineage tab, and follow the chain from the dataset to the run to your model version.
In the demo you can deploy a staging version straight away. In a full workspace, use Request promote when the team wants a second pair of eyes before a version counts as production.
Common mistakes
- Registering with a vague name. The name is shared by every future version, so pick one that says what the model predicts.
- Expecting a version to change after registering. If the candidate is wrong, register a new one; the old version stays as the record.
- Deleting a model that is live. The app refuses: "A version is in production. Archive it before deleting the model." or "This model has 1 deployment. Delete it first."
- Waiting for an approval you requested yourself. The request needs a workspace admin other than you.
As a data scientist
Write in the description what the model predicts, how the target is defined and which period of data it saw; future you will not remember. Compare the primary metric of a new version with the one in production before asking for promotion. The lineage view is your answer when someone asks which data produced a given prediction.
Checkpoint
You should see your model under Models, on the Registry tab, with a version v1 whose status is staging.