0
0
ML Pythonprogramming~20 mins

ML workflow (collect, prepare, train, evaluate, deploy) in ML Python - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
ML Workflow Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the correct order of ML workflow steps
Which of the following lists the steps of a typical machine learning workflow in the correct order?
ACollect data, Prepare data, Train model, Evaluate model, Deploy model
BPrepare data, Collect data, Train model, Deploy model, Evaluate model
CTrain model, Collect data, Prepare data, Evaluate model, Deploy model
DCollect data, Train model, Prepare data, Evaluate model, Deploy model
Attempts:
2 left
Predict Output
intermediate
2:00remaining
Output 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]
A[10, 20, 30, 40]
BSyntaxError
C[None, None]
D[10, 20, None, 30, None, 40]
Attempts:
2 left
Model Choice
advanced
2:00remaining
Choosing 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?
ALinear Regression
BConvolutional Neural Network (CNN)
CK-Means Clustering
DPrincipal Component Analysis (PCA)
Attempts:
2 left
Metrics
advanced
2:00remaining
Evaluating model performance with accuracy
A model predicted 80 correct labels out of 100 total samples. What is the accuracy of the model?
A0.2
B80
C0.8
D1.25
Attempts:
2 left
🔧 Debug
expert
2:00remaining
Debugging 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)
ANameError: name 'model' is not defined
BTypeError: deploy_model() missing 1 required positional argument
CSyntaxError: invalid syntax
DAttributeError: 'NoneType' object has no attribute 'save'
Attempts:
2 left