I am just curious about the running output of R caret train function.
I am doing a grid search for a random forest model. Here is the code:
predCount <- ncol(dfTrain) - 1 rfGrid <- expand.grid( #mtry = round( predCount * c(0.75, 0.5, 0.33, 0.1) ) mtry = round( predCount * c(0.33) ) ) rfTrControl <- trainControl( method = "cv", number = 5, verboseIter = TRUE, returnData = FALSE, allowParallel = TRUE ) rfTrain <- train( x = as.matrix(dfTrain[, ! names(dfTrain) %in% c("totalRet")]), y = dfTrain$totalRet, trControl = rfTrControl, tuneGrid = rfGrid, method = "rf", ntree = 1500 )
Here is the output:
+ Fold1: mtry=10 - Fold1: mtry=10 + Fold2: mtry=10 - Fold2: mtry=10 + Fold3: mtry=10 - Fold3: mtry=10 + Fold4: mtry=10 - Fold4: mtry=10 + Fold5: mtry=10 - Fold5: mtry=10 Aggregating results ...
Why are the folds printed twice? What do the + and - before each fold denote?