Complete the code to define the first step in ML CI/CD pipeline.
def [1](): print("Start data validation")
The first step in ML CI/CD is usually data validation to ensure quality input.
Complete the code to specify the artifact type unique to ML pipelines.
artifact = '[1]'
ML pipelines produce model weights as artifacts, unlike software binaries.
Fix the error in the ML pipeline step that triggers retraining.
if data_changed or [1]: retrain_model()
Retraining triggers when data or code changes, not on deployment status.
Fill both blanks to define the ML pipeline stages for testing and deployment.
def pipeline(): if [1](): [2]()
ML pipelines test the model and then deploy it if tests pass.
Fill all three blanks to create a dictionary tracking ML model metrics after training.
metrics = {
'[1]': accuracy,
'[2]': precision,
'[3]': recall
}Common ML metrics include accuracy, precision, and recall to evaluate model quality.
