Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to define the first step in ML CI/CD pipeline.
MLOps
def [1](): print("Start data validation")
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing training or deployment as first step.
✗ Incorrect
The first step in ML CI/CD is usually data validation to ensure quality input.
2fill in blank
mediumComplete the code to specify the artifact type unique to ML pipelines.
MLOps
artifact = '[1]'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing software binaries with ML model files.
✗ Incorrect
ML pipelines produce model weights as artifacts, unlike software binaries.
3fill in blank
hardFix the error in the ML pipeline step that triggers retraining.
MLOps
if data_changed or [1]: retrain_model()
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing deployment or test status instead of code changes.
✗ Incorrect
Retraining triggers when data or code changes, not on deployment status.
4fill in blank
hardFill both blanks to define the ML pipeline stages for testing and deployment.
MLOps
def pipeline(): if [1](): [2]()
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using software test functions or building images instead of deploying.
✗ Incorrect
ML pipelines test the model and then deploy it if tests pass.
5fill in blank
hardFill all three blanks to create a dictionary tracking ML model metrics after training.
MLOps
metrics = {
'[1]': accuracy,
'[2]': precision,
'[3]': recall
} Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing metric names or using loss as a key incorrectly.
✗ Incorrect
Common ML metrics include accuracy, precision, and recall to evaluate model quality.