I want to calculate AUC for (y_test, y_pred) for a RandomForest model with the code below. But there are some errors. It says ValueError: multiclass format is not supported. Looks like this:Error details . How can I fix it, guys? Thanks a lot!
from sklearn.metrics import roc_curve, auc
false_positive_rate, true_positive_rate, thresholds = roc_curve(y_test, y_pred)
roc_auc = auc(false_positive_rate, true_positive_rate)
roc_auc