Machine Learning Mastery Quiz

10:00

Linear models, ensembles, clustering, tuning, imbalance and deployment. · 10 questions

Question 1 of 10
Logistic regression converts a weighted sum into a probability using which function?
Question 2 of 10
Which scikit-learn model tends to set some coefficients exactly to zero?
Question 3 of 10
A random forest reduces overfitting mainly by…
Question 4 of 10
Why must features usually be scaled before k-means?
Question 5 of 10
What does this code keep?
pca = PCA(n_components=0.95)
Z = pca.fit_transform(X_scaled)
Question 6 of 10
For a churn dataset with only 3% positives, which scoring is most informative during tuning?
Question 7 of 10
Which splitter should you use when validating a weekly sales forecasting model?
Question 8 of 10
What is wrong with this workflow?
X_res, y_res = SMOTE().fit_resample(X, y)
X_tr, X_te, y_tr, y_te = train_test_split(X_res, y_res)
Question 9 of 10
In gradient boosting, lowering `learning_rate` from 0.3 to 0.03 usually requires…
Question 10 of 10
You `joblib.dump` a fitted pipeline with scikit-learn 1.5 and load it in production. What is the safest practice?