Access all models produced by rfe in caret

﹥>﹥吖頭↗ 提交于 2019-12-10 17:52:12

问题


I'm using the rfe function in the caret package to do feature selection for logistic regression model. I'm looking at sizes of 5, 10, 15, 20, and 25 selecting the best model using Rsquared (my dependent variable is 0,1). Is there a way to access the other models produced by the rfe function beyond the final selected model?


回答1:


There is no automatic way. The best thing you can do is to alter the fit function and save it yourself. See rfeControl and the package vignettes for more details.

Max



来源:https://stackoverflow.com/questions/12481365/access-all-models-produced-by-rfe-in-caret

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!