Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '!=' instead of '==' causes retraining not to trigger when data is present.
✗ Incorrect
We check if new_data is equal to True to trigger retraining.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '>=' triggers retraining when accuracy is good.
✗ Incorrect
Retraining triggers when accuracy is less than the threshold.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '=' causes syntax error.
✗ Incorrect
Use '==' to compare values. '=' is assignment and causes error.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using accuracy >= threshold triggers retraining incorrectly.
✗ Incorrect
Retraining triggers only if new data is present and accuracy is below threshold.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using accuracy >= threshold in second blank prevents retraining when accuracy is low.
✗ Incorrect
Retraining triggers if new data arrives, or if accuracy is low and model drift is detected.