Machine Learning Basics Quiz

10:00

Core ML concepts. · 10 questions

Question 1 of 10
Predicting house prices is a…
Question 2 of 10
Why split data into train and test sets?
Question 3 of 10
Model performs great on train, poorly on test. This is…
Question 4 of 10
Best metric for rare fraud detection?
Question 5 of 10
K-Means is an example of…
Question 6 of 10
What does `random_state=42` do here?
X_tr, X_te, y_tr, y_te = train_test_split(
    X, y, test_size=0.2, random_state=42)
Question 7 of 10
Precision answers which question?
Question 8 of 10
A `city` column holds Pune, Delhi and Mumbai with no natural order. Which encoding fits?
Question 9 of 10
Why put the scaler inside the Pipeline instead of scaling X once beforehand?
model = Pipeline([('scale', StandardScaler()), ('clf', LogisticRegression())])
scores = cross_val_score(model, X, y, cv=5)
Question 10 of 10
As a model is made more flexible (deeper trees, more features), what usually happens?