0
0
MLOpsdevops~10 mins

Automated retraining triggers in MLOps - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to trigger retraining when new data arrives.

MLOps
if new_data [1] True:
    trigger_retraining()
Drag options to blanks, or click blank then click option'
A<
B==
C!=
D>
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' causes retraining not to trigger when data is present.
2fill in blank
medium

Complete the code to check if model accuracy dropped below threshold.

MLOps
if accuracy [1] threshold:
    trigger_retraining()
Drag options to blanks, or click blank then click option'
A<
B>=
C==
D!=
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>=' triggers retraining when accuracy is good.
3fill in blank
hard

Fix the error in the retraining trigger condition.

MLOps
if model_drift [1] True:
    trigger_retraining()
Drag options to blanks, or click blank then click option'
A=
B!=
C==
Dis
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' causes syntax error.
4fill in blank
hard

Fill both blanks to trigger retraining when data is new and accuracy is low.

MLOps
if [1] and [2]:
    trigger_retraining()
Drag options to blanks, or click blank then click option'
Anew_data == True
Baccuracy >= threshold
Caccuracy < threshold
Dmodel_drift == False
Attempts:
3 left
💡 Hint
Common Mistakes
Using accuracy >= threshold triggers retraining incorrectly.
5fill in blank
hard

Fill all three blanks to create a retraining trigger based on data, accuracy, and drift.

MLOps
if [1] or ([2] and [3]):
    trigger_retraining()
Drag options to blanks, or click blank then click option'
Anew_data == True
Baccuracy < threshold
Cmodel_drift == True
Daccuracy >= threshold
Attempts:
3 left
💡 Hint
Common Mistakes
Using accuracy >= threshold in second blank prevents retraining when accuracy is low.