Python的scikit-learn库并没有直接支持Stepwise Regression的函数,但是可以手动改造,见:http://planspace.org/20150423-forward_selection_with_statsmodels/, 不过要注意逐步回归带来的问题http://www.stata.com/support/faqs/statistics/stepwise-regression-problems/
统计、数据分析和线性回归相关的Python课件和书籍见附件




雷达卡




京公网安备 11010802022788号







