Automate retraining and promotion
Choose when to train, when to evaluate and when a pipeline may release a candidate.
Automate retraining and promotion
Work through the decision
A drift alert arrives before delivery outcomes are available. An engineer wants the alert to retrain and instantly deploy a replacement. Which actions should remain separate?
Check your reasoning
Use the alert to investigate the input change. Check freshness, label availability and the volume of new examples. A scheduled or event-triggered training run can produce a candidate. A separate gate compares it with the incumbent, including critical slices. Promote only after the gate succeeds and retain a rollback version.
Compare the choices
- Data-arrival trigger
- Train when a sufficient, validated batch of new examples and mature labels becomes available. Track input versions and deduplicate events.
- Scheduled retraining
- Choose a cadence when data and business deadlines are predictable. Validate freshness and label maturity on each run.
- Continuous integration
- Validate source changes, test component contracts and build versioned artifacts before a training pipeline can use them.
- Continuous training
- Run an approved training pipeline on a new version of data. Track the candidate and evaluation artifacts independently of deployment.
- Gated delivery
- Promote a validated version through environments under a documented release policy. Preserve the incumbent and stop on failed quality checks.
Test the decision
In Cloud Build, run unit and contract checks when source changes, build an immutable component image and publish a versioned pipeline definition. Execute continuous training using a defined dataset cutoff. Repeating the same event should resolve to the same logical training request.
Practice the guide skills
- Choose among a schedule, fresh labeled data and a drift investigation as triggers. Define deduplication and the minimum data needed for a useful run. Watch 2:08:32
- Trace a code change through Cloud Build tests, versioned pipeline delivery, continuous training and a gated model release. Identify the rollback artifact. Watch 2:09:41
Official objectives for this lesson
Related lesson · Make an Airflow backfill repeatable
Automate retraining and promotion quiz
Answer 3 questions. Check each answer for an explanation.