search for: selectedindices

Displaying 1 result from an estimated 1 matches for "selectedindices".

2017 Oct 16
1
ROC curve for each fold in one plot
...Then I need ROC curve for each fold: > set.seed(1) > train_control <- trainControl(method="cv", number=5,savePredictions = TRUE,classProbs = TRUE) > output <- train(Species~., data=iris, trControl=train_control, method="rf") > library(pROC) > selectedIndices <- output$pred$Resample == "Fold1" > plot.roc(output$pred$obs[selectedIndices],output$pred$setosa[selectedIndices]) > selectedIndices <- output$pred$Resample == "Fold2" > plot.roc(output$pred$obs[selectedIndices],output$pred$setosa[selectedIndices]) >...