How to plot ROC curves for every cross-validations using Caret
问题 I have the following code: library(mlbench) library(caret) library(ggplot2) set.seed(998) # Prepare data ------------------------------------------------------------ data(Sonar) my_data <- Sonar # Cross Validation Definition --------------------------------------------------- fitControl <- trainControl( method = "cv", number = 10, classProbs = T, savePredictions = T, summaryFunction = twoClassSummary ) # Training with Random Forest -------------------------------------------------------------