EduFlow
Machine Learning Crash Course

Checkpoint: Classification

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 fraud model must catch at least 90% of fraud; analysts can review up to 500 alerts a day. Which pair of numbers do you need from validation to choose a threshold?

Question 2 of 5

A random forest uses 500 fully grown trees. Which change most directly reduces its training time without usually hurting accuracy much?

Question 3 of 5
Python
prob = model.predict_proba(X_test)
print(roc_auc_score(y_test, prob))

For a binary problem this raises an error. What’s the fix?

Question 4 of 5

A tree-based churn model and a logistic regression both have ROC AUC 0.80 on the same folds. The business needs probabilities that mean what they say, to forecast how many customers will leave. Which is the safer first choice?

Question 5 of 5

In a dataset where 2% of loans default, a model with class_weight="balanced" raises recall from 0.40 to 0.75 and lowers precision from 0.60 to 0.20. What happened?

5 questions unanswered