Database Reference
In-Depth Information
plot(perf, lwd=2, xlab="False Positive Rate (FPR)",
ylab="True Positive Rate (TPR)")
abline(a=0, b=1, col="gray50", lty=3)
Figure 7.10 ROC curve of the naïve Bayes classifier on the bank marketing
dataset
The following R code shows that the corresponding AUC score of the ROC curve is
about 0.915.
auc <- performance(pred, "auc")
auc <- unlist(slot(auc, "y.values"))
auc
[1] 0.9152196
Search WWH ::




Custom Search