text_html_output_1.png
from sklearn import linear_model

from sklearn.metrics import explained_variance_score, r2_score

from sklearn import linear_model
reg = linear_model.LinearRegression()
reg.fit(X_train, y_train)
reg_pred = reg.predict(X_test)

from sklearn.metrics import explained_variance_score, r2_score
explained_variance_score(reg_pred, y_test)