Machine Learning, Regression, Data Science.
print("Coefficient of determination/R-square: 1 is perfect prediction: %.2f" % r2_score(y_test, y_pred)) print("Adjusted R-square, where n is number of samples and p is number of predictors:" % 1-(1-R2)*(n-1)/(n-p-1)) The coefficient estimates for Ordinary Least Squares rely on the independence of