Challenge - 5 Problems
ML Workflow Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediateIdentify the correct order of ML workflow steps
Which of the following lists the steps of a typical machine learning workflow in the correct order?
Attempts:
2 left
💡 Hint
Think about what you need before training a model and what comes after training.
✗ Incorrect
The typical ML workflow starts with collecting data, then preparing it for training. After that, the model is trained, evaluated for performance, and finally deployed for use.
❓ Predict Output
intermediateOutput of data preparation step
Given the following Python code snippet for data preparation, what is the output of the variable
prepared_data?ML Python
raw_data = [10, 20, None, 30, None, 40] prepared_data = [x for x in raw_data if x is not None]
Attempts:
2 left
💡 Hint
Look at the list comprehension filtering out None values.
✗ Incorrect
The list comprehension keeps only values that are not None, so the output excludes None values.
❓ Model Choice
advancedChoosing the right model for classification
You have a dataset with labeled images of cats and dogs. Which model type is best suited for this classification task?
Attempts:
2 left
💡 Hint
Think about which model type works well with images and classification.
✗ Incorrect
CNNs are designed to work with image data and are excellent for classification tasks like distinguishing cats and dogs.
❓ Metrics
advancedEvaluating model performance with accuracy
A model predicted 80 correct labels out of 100 total samples. What is the accuracy of the model?
Attempts:
2 left
💡 Hint
Accuracy is the ratio of correct predictions to total samples.
✗ Incorrect
Accuracy = Number of correct predictions / Total number of samples = 80/100 = 0.8.
🔧 Debug
expertDebugging deployment code error
You have this Python code to deploy a trained model, but it raises an error. What error does it raise?
ML Python
def deploy_model(model): model.save('model_path') trained_model = None deploy_model(trained_model)
Attempts:
2 left
💡 Hint
Check what happens if you call a method on None.
✗ Incorrect
The variable trained_model is None, so calling save on it raises an AttributeError.
