Ordinary Least Squares, P Value, Regression, Statsmodels.
in scikit-learn. #Intercept 153.74 #Coefs [1.75, -11.51, 25.61, 16.83, -44.45, 24.64, 7.68, 13.14, 35.16, 2.35] Predict X_test_sc_cst=sm.add_constant(X_test_sc) y_test_pred=sm_ols.predict(X_test_sc_cst) Evaluate r2_test=r2_score(y_test, y_test_pred) print("TEST R2: %.3f" % r2_test) #TEST R2: 0.453