text_plain_output_1.png
from sklearn import metrics

from sklearn.linear_model import LinearRegression

import numpy as np # linear algebra

clf = LinearRegression()

clf.fit(X_train, y_train)

predictions = clf.predict(X_test)

print(np.sqrt(metrics.mean_squared_error(y_test, predictions)))