Closed topepo closed 8 years ago
I get a different behaviour , i.e., an error, when using rf
instead of lda
:
> tt <- train(Species ~ ., data = iris, method = "rf", trControl = trainControl(method = "LOOCV"))
> tt
Random Forest
150 samples
4 predictor
3 classes: 'setosa', 'versicolor', 'virginica'
No pre-processing
Resampling: Leave-One-Out Cross-Validation
Summary of sample sizes: 149, 149, 149, 149, 149, 149, ...
Resampling results across tuning parameters:
Error in `[.data.frame`(tuneAcc, , params, drop = FALSE) :
undefined columns selected
Thank you very much for looking into this.
Best,
Cedric
[EDIT]
packageVersion("caret") [1] ‘6.0.68’
I'm facing this exact issue on 'rf' today. Has this issue been fixed already, or did I uncover a new bug?