Variable importance using the caret package (error); RandomForest algorithm

后端 未结 2 377
清歌不尽
清歌不尽 2021-01-17 09:23

I am trying to obtain the variable importance of a rf model in any way. This is the approach I have tried so far, but alternate suggestions are very welcome.

I have

2条回答
  •  时光取名叫无心
    2021-01-17 10:00

    The importance scores can take a while to compute and train won't automatically get randomForest to create them. Add importance = TRUE to the train call and it should work.

    Max

提交回复
热议问题