Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

calculate vif in python

vif = pd.DataFrame()
vif["vif"] = [variance_inflation_factor(X_scaled,i) for i in range(X_scaled.shape[1])]
vif["Features"] = X.columns
vif
 
PREVIOUS NEXT
Tagged: #calculate #vif #python
ADD COMMENT
Topic
Name
4+3 =