Session Ready
Exercise

Evaluate test set AUC

In Chapter 3, we learned about the AUC metric for evaluating binary classification models. In this exercise, you will compute test set AUC for the Random Forest model.

Instructions
100 XP
  • Use the predict() function with type = "prob" to generate numeric predictions on the credit_test dataset.
  • Compute the AUC using the auc() function from the Metrics package.