存取rfe在插入符号中产生的所有模型 [英] Access all models produced by rfe in caret

查看:127
本文介绍了存取rfe在插入符号中产生的所有模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用脱字符号包中的rfe函数为逻辑回归模型进行特征选择.我正在查看5、10、15、20和25的sizes,使用Rsquared选择最佳模型(我的因变量是0,1).除了最终选择的模型之外,还有什么方法可以访问rfe函数生成的其他模型?

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?

推荐答案

没有自动方法.您可以做的最好的事情就是更改fit功能并自己保存.有关更多详细信息,请参见rfeControl和程序包渐晕.

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.

最大

这篇关于存取rfe在插入符号中产生的所有模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆