ladderlore
  • 输入服务名称,例如 S3 或 IAM。

概念 · 基于 AIF-C01

Triggering retraining

Start retraining on a schedule, new data or drift, then compare, approve and avoid loops.

本课尚未翻译,暂以英文显示。

你在AI Practitioner中已学过

  • MLOps automates training and deployment so models can be refreshed.
  • Models drift as data changes, which is a reason to retrain.
阅读AI Practitioner课程
Schedule, new data or alarm
EventBridge rule
SageMaker Pipelines
Challenger vs champion
Approval gate
Model Registry
  1. 1A schedule, new data or an alarm fires.
  2. 2An EventBridge rule starts the pipeline.
  3. 3The pipeline trains a challenger model.
  4. 4The challenger is compared with the champion, and an approval gate decides.
  5. 5An approved model is registered and deployed.
A retraining run from trigger to registered model.

分步说明

  1. 1A schedule, new data or an alarm fires.
  2. 2An EventBridge rule starts the pipeline.
  3. 3The pipeline trains a challenger model.
  4. 4The challenger is compared with the champion, and an approval gate decides.
  5. 5An approved model is registered and deployed.
  • Schedule

    Comes from
    EventBridge schedule
    Watch for
    May retrain on unchanged data
  • New data

    Comes from
    S3 event through EventBridge
    Watch for
    Batch small arrivals
  • Drift or quality alarm

    Comes from
    Monitor, CloudWatch alarm
    Watch for
    Labels can arrive late
Three triggers and what to watch for in each.

是什么

Three triggers start retraining. A schedule (EventBridge) is simple and predictable but may retrain on unchanged data. New data in Amazon S3, announced through EventBridge once the bucket sends events there, retrains when there is enough to learn from. A drift or quality alarm, from a monitor to CloudWatch to EventBridge, retrains only when needed, but quality alarms need ground truth labels, which can arrive late.

是什么

The trigger starts a SageMaker Pipelines run or a Step Functions workflow. The new model is the challenger. It is evaluated on the same data as the champion, the model in production. Only a better challenger moves on. An approval gate, manual or a metric rule, sets the Model Registry status to Approved, which starts deployment, ideally with a canary rollout.

Avoid retrain loops. If model output is written to the bucket that triggers training, every run starts the next. Set a minimum time between runs, limit concurrent executions, and trigger on labeled data only. Make a retrain that finds no improvement end quietly, and alert when a pipeline retrains many times in a row.

要记住

  • Triggers: EventBridge schedule, new data in S3, drift or quality alarm.
  • The trigger starts Pipelines or Step Functions.
  • Champion is in production. Challenger must beat it on the same data.
  • An approval gate sets Approved in Model Registry, which starts deployment.

要记住

  • Avoid loops with a minimum interval, limited concurrency and labeled-data triggers.

考试中

  • “Retrain only when accuracy drops” points to a quality or drift alarm that starts the pipeline.
  • “Retrain every night, simplest” points to an EventBridge schedule.
  • “New model must beat the production model before release” points to a champion and challenger comparison.
  • “Pipeline keeps retraining itself” points to model output landing in the trigger bucket, a loop.