[英]Similar python function of R Vif Function
lately I've been working with both R
and Python
for Analytics and Statics studies, so I was wondering what is the similar python function of R Vif
Function. lately I've been working with both R
and Python
for Analytics and Statics studies, so I was wondering what is the similar python function of R Vif
Function.
Remember that the Vif
function can help us to find...请记住, Vif
function 可以帮助我们找到...
The VIF of a predictor is a measure for how easily it is predicted from a linear regression using the other predictors.预测变量的 VIF 用于衡量使用其他预测变量从线性回归预测它的难易程度。
Thank you and have all a good day!!谢谢你,祝你有美好的一天!!
To get vif value in python:获取 python 中的 vif 值:
from statsmodels.stats.outliers_influence import variance_inflation_factor
variables = lm.model.exog
vif = [variance_inflation_factor(variables, i) for i in
range(variables.shape[1])]
vif
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.