Practicing Machine Learning Interview Questions in Python
Lisa Stuart
Data Scientist
VIF value | Multicollinearity |
---|---|
<= 1 | no |
> 1 | yes, but can ignore |
> 5 | yes, need to address |
Function/method | returns |
---|---|
sklearn.linear_model.LinearRegression |
Linear Regression |
data.corr() |
correlation matrix |
sns.heatmap(corr) |
heatmap of correlations |
mod.coef_ |
estimated model coefficients |
mean_squared_error(y_test, y_pred) |
MSE |
r2_score(y_test, y_pred) |
R-squared score |
df.columns |
column names |
Practicing Machine Learning Interview Questions in Python