Last active
June 3, 2019 16:44
-
-
Save erykml/ae433fd708ca414519fa63d10cd9c07c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from statsmodels.stats.outliers_influence import variance_inflation_factor | |
| vif = [variance_inflation_factor(X_constant.values, i) for i in range(X_constant.shape[1])] | |
| pd.DataFrame({'vif': vif[1:]}, index=X.columns).T |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment