Created
October 10, 2019 03:49
-
-
Save brockmanmatt/51110593ae00d0a7f2a8dcf7d9fbba66 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.metrics import mean_squared_error | |
from math import sqrt | |
testing = results.copy() | |
print("RMSE training using mean: {}".format(sqrt(mean_squared_error(testing.actual, testing.m)))) | |
print("RMSE training using model: {}".format(sqrt(mean_squared_error(testing.actual, testing.predicted)))) | |
testing = results[-len(h_predictions)-1:].copy() | |
print("RMSE testing using mean: {}".format(sqrt(mean_squared_error(testing.actual, testing.m)))) | |
print("RMSE testing using model: {}".format(sqrt(mean_squared_error(testing.actual, testing.predicted)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment