Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the ML workflow by collecting data.
ML Python
data = [1]('data.csv')
Drag options to blanks, or click blank then click option'
Attempts:
3 left
2fill in blank
mediumComplete the code to prepare the data by filling missing values.
ML Python
data['age'] = data['age'].[1](data['age'].mean())
Drag options to blanks, or click blank then click option'
Attempts:
3 left
3fill in blank
hardFix the error in training the model by choosing the correct method to fit the data.
ML Python
model = LogisticRegression()
model.[1](X_train, y_train) Drag options to blanks, or click blank then click option'
Attempts:
3 left
4fill in blank
hardFill both blanks to evaluate the model's accuracy.
ML Python
from sklearn.metrics import [1] accuracy = [2](y_test, y_pred)
Drag options to blanks, or click blank then click option'
Attempts:
3 left
5fill in blank
hardFill all three blanks to deploy the trained model by saving it to a file.
ML Python
import joblib joblib.[1](model, '[2]') loaded_model = joblib.[3]('[2]')
Drag options to blanks, or click blank then click option'
Attempts:
3 left