ROC curve for the testing set using Caret package
问题 I am trying to obtain ROC curve for the best model from caret on the test set. I came across MLeval package which seems to be handy (the output is very thorough, providing all the needed metrics with graphs using few lines of code). A nice example is here: https://stackoverflow.com/a/59134729/12875646 I am trying the code below and able to obtain the required metrics/graphs for the training set but keep getting error when I try to work on the testing set. library(caret) library(MLeval) data