EduFlow
Machine Learning Crash Course

Checkpoint: What Machine Learning Is

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

A churn model scores 0.91 accuracy on the 298 customers it was trained on and 0.70 on the 100 held-out customers. The 80-day rule scores 0.72 on the same 100. What should you tell the team?

Question 2 of 5

Your data has 10,000 rows and the positive class is 3%. You call train_test_split(X, y, test_size=0.2, random_state=0). What risk does leaving out stratify=y create?

Question 3 of 5

What does this code print?

Python
from sklearn.dummy import DummyClassifier
import numpy as np
X = np.zeros((10, 1))
y = np.array([1, 1, 1, 0, 0, 0, 0, 0, 0, 0])
print(DummyClassifier(strategy="most_frequent").fit(X, y).score(X, y))
Question 4 of 5

You fit model = KNeighborsClassifier().fit(X_train, y_train) and later call model.fit(X_new, y_new) on a second batch of data. What does the model now know?

Question 5 of 5

Which question is framed well enough to start a supervised learning project?

5 questions unanswered