我正在尝试使用caretEnsemble :: caretList运行多个模型。它不适用于svmRBF和xgboost。它与svmLinear一起使用。有谁知道为什么会这样吗?非常感谢。
library(caret)
library(caretEnsemble)
train.control <- trainControl(method="cv",
number=5,
summaryFunction = twoClassSummary,
classProbs = TRUE,
savePredictions='all')
df = iris %>% filter(Species!='setosa') %>% mutate(Species=factor(Species))
caretList(Species~.,
data= df,
trControl=train.control,
metric="ROC",
methodList=c('svmRBF', 'xgboost') )
我在下面收到错误消息:
Error in methodCheck(methodList) : The following models are not valid caret models: svmRBF, xgboost