StepLDA without Cross Validation
问题 I would like to select the variables on the basis of the training error. For that reason I set method in trainControl to "none". However, if I run the function below twice I get two different errors (correctness rates). In this exsample the difference is not worth to mention. Even so I wouldn't have expected any difference at all. Does somebody know where this difference comes from? library(caret) c_1 <- trainControl(method = "none") maxvar <-(4) direction <-"forward" tune_1 <-data.frame