library(randomForest)
library(mlbench)
library(caret)
control <- trainControl(method="repeatedcv", number=10, repeats=3, search="grid")
set.seed(seed)
tunegrid <- expand.grid(.mtry=c(1:15))
rf_gridsearch <- train(FGL3_train$pulsarness~., .......)
后報(bào)錯(cuò)
錯(cuò)誤:unknown column “FGL3_train”“pulsarness”
這兩列數(shù)據(jù)都存在可查看,代碼在他人電腦上正常運(yùn)行,求教報(bào)錯(cuò)原因?是否為版本問(wèn)題?