You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got an error when I ran varImp() on the train() output object using bagged models, e.g. bagFDA, bagEarth. Please see below. Thanks!
Minimal dataset:
library(caret)
set.seed(1)
X <- iris[1:100,1:4]
y <- iris[1:100,5]
y=factor(y, levels=c("setosa", "versicolor"))
Minimal, runnable code:
model_class <- train(
X, y,
metric='ROC',
method="bagFDA",
trControl=trainControl(
method="cv",
number=5,
classProbs=TRUE,
summaryFunction=twoClassSummary,
savePredictions="final")
)
> varImp(model_class)
Error in .(var) : could not find function "."
Session Info:
>sessionInfo()
caret_6.0-94
The text was updated successfully, but these errors were encountered:
Hi,
I got an error when I ran varImp() on the train() output object using bagged models, e.g. bagFDA, bagEarth. Please see below. Thanks!
Minimal dataset:
Minimal, runnable code:
Session Info:
The text was updated successfully, but these errors were encountered: