Skip to content

Instantly share code, notes, and snippets.

@lylayang
Last active March 15, 2020 06:09
Show Gist options
  • Save lylayang/e9372c51abb66fa39b239dce902a2f6d to your computer and use it in GitHub Desktop.
Save lylayang/e9372c51abb66fa39b239dce902a2f6d to your computer and use it in GitHub Desktop.
train_predict = model.predict(trainX)
test_predict = model.predict(testX)
print('Train Root Mean Squared Error(RMSE): %.2f; Train Mean Absolute Error(MAE) : %.2f '
% (np.sqrt(mean_squared_error(trainY, train_predict[:,0])), mean_absolute_error(trainY, train_predict[:,0])))
print('Test Root Mean Squared Error(RMSE): %.2f; Test Mean Absolute Error(MAE) : %.2f '
% (np.sqrt(mean_squared_error(testY, test_predict[:,0])), mean_absolute_error(testY, test_predict[:,0])))
model_loss(history)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment