Using RFE, you can get a importance rank of the features, but right now I can only use the model and parameter inner the package like: lmFuncs(linear model),rfFuncs(random forest)
it seems that
caretFuncs
can do some custom settings for your own model and parameter,but I don't know the details and the formal document didn't give detail, I want to apply svm and gbm to this RFE process,because this is the current model I used to train, anyone has any idea?
I tried to recreate working example based on the documentation. You correctly identified use of
caretFuncs
, you can then set your model parameters inrfe
call (you can also definetrainControl
object etc).If you want to dive deeper into the matter you might want to visit links below.
rfe
documentation with basic code snippets:https://www.rdocumentation.org/packages/caret/versions/6.0-80/topics/rfe
caret
documentation onrfe
:https://topepo.github.io/caret/recursive-feature-elimination.html
Hope this helps!