0
0
MLOpsdevops~10 mins

Trigger-based retraining (schedule, drift, performance) in MLOps - Step-by-Step Execution

Choose your learning style9 modes available
Process Flow - Trigger-based retraining (schedule, drift, performance)
Start Monitoring
Check Schedule?
YesTrigger Retrain
Update Model
Check Data Drift?
YesTrigger Retrain
Update Model
Check Performance?
YesTrigger Retrain
Update Model
Wait for Next Cycle
Back to Start Monitoring
The system continuously monitors schedule, data drift, and performance to decide when to retrain the model.
Execution Sample
MLOps
IF current_time == retrain_time THEN
  retrain_model()
ELSE IF data_drift_detected THEN
  retrain_model()
ELSE IF performance_below_threshold THEN
  retrain_model()
ELSE
  wait()
This pseudocode checks three triggers: schedule, data drift, and performance to decide retraining.
Process Table
StepCurrent TimeData Drift DetectedPerformance StatusAction TakenModel Retrained
108:00NoGoodWaitNo
212:00YesGoodTrigger RetrainYes
312:05NoGoodWaitNo
416:00NoBelow ThresholdTrigger RetrainYes
520:00NoGoodWaitNo
600:00NoGoodTrigger Retrain (Scheduled)Yes
700:05NoGoodWaitNo
💡 Process continues indefinitely, checking triggers each cycle.
Status Tracker
VariableStartAfter Step 1After Step 2After Step 3After Step 4After Step 5After Step 6After Step 7
Current Time08:0008:0012:0012:0516:0020:0000:0000:05
Data Drift DetectedNoNoYesNoNoNoNoNo
Performance StatusGoodGoodGoodGoodBelow ThresholdGoodGoodGood
Model RetrainedNoNoYesNoYesNoYesNo
Key Moments - 3 Insights
Why does the model retrain at step 2 even though the schedule time hasn't arrived?
Because data drift was detected at step 2, triggering retraining as shown in the execution_table row 2.
At step 4, why is retraining triggered despite no data drift?
Performance dropped below the threshold at step 4, which triggers retraining according to the logic in the execution_table.
Why does the model retrain at step 6 even though data drift and performance are normal?
Because the scheduled retraining time arrived at step 6, triggering retraining regardless of other conditions.
Visual Quiz - 3 Questions
Test your understanding
Look at the execution_table, what is the action taken at step 3?
ATrigger Retrain
BCheck Data Drift
CWait
DUpdate Model
💡 Hint
Refer to the 'Action Taken' column in execution_table row 3.
At which step does performance status cause retraining?
AStep 2
BStep 4
CStep 6
DStep 1
💡 Hint
Check 'Performance Status' and 'Action Taken' columns in execution_table.
If data drift was detected at step 5, what would be the action?
ATrigger Retrain
BWait
CIgnore Drift
DSchedule Retrain
💡 Hint
Look at how data drift triggers retraining in execution_table step 2.
Concept Snapshot
Trigger-based retraining checks three main triggers:
- Scheduled time to retrain
- Data drift detection
- Performance drop below threshold
If any trigger is true, retraining starts.
Otherwise, system waits and monitors again.
Full Transcript
This visual execution shows how a machine learning system decides when to retrain a model. It checks three triggers: scheduled retraining time, data drift detection, and performance status. At each step, the system evaluates these conditions. If any condition is met, it triggers retraining. For example, at step 2, data drift causes retraining. At step 4, poor performance triggers retraining. At step 6, scheduled retraining happens regardless of other conditions. Variables like current time, data drift status, and performance status change over time and influence the retraining decision. This cycle repeats continuously to keep the model updated and accurate.