Closed dernesa closed 7 years ago
Furthermore: I get the same error for:
importance = TRUE
importance = FALSE
importance = NULL
It seems the option has to be gone, not to cause an error....
I guess, I now understand that the importance
option is only meant for the randomForest routine as a ...
statement.
... arguments passed to the classification or regression routine (such as randomForest). Errors will occur if values for tuning parameters are passed here.
So it seems that glmnet, lasso and gbm are not tolerating wrong arguments very well.
Yes, the extra arguments are specific to the modeling function. Sorry for the mixup
Dear Max,
I trained a series of regression models with the same settings using caret. For some (glmnet, lasso, gbm), I always got the same error:
Minimal, runnable error code:
This:
produces this error:
works just fine:
However, it took me quite a while to find my error, because to me the error message implied that the models could not cope with the data I fed them. → I had a more complicated expression with NA imputation in the training loop etc..
Maybe it is worth fixing… Other models deal with the additional
importance = TRUE
just fine.Thanks for caret!! I use it a lot!
cheers!!
Session Info: