text_html_output_1.png
from sklearn import linear_model

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 import linear_model
ridge = linear_model.Ridge(alpha=0.5)
ridge.fit(X_train, y_train)
ridge_pred = ridge.predict(X_test)
explained_variance_score(ridge_pred, y_test)