Skip to content

Instantly share code, notes, and snippets.

@lylayang
Created March 15, 2020 07:56
Show Gist options
  • Save lylayang/0257f00e2acc83f552b1de00be17340e to your computer and use it in GitHub Desktop.
Save lylayang/0257f00e2acc83f552b1de00be17340e to your computer and use it in GitHub Desktop.
train_score = model.evaluate(trainX, trainY, verbose=0)
print('Train Root Mean Squared Error(RMSE): %.2f; Train Mean Absolute Error(MAE) : %.2f '
% (np.sqrt(train_score[1]), train_score[2]))
test_score = model.evaluate(testX, testY, verbose=0)
print('Test Root Mean Squared Error(RMSE): %.2f; Test Mean Absolute Error(MAE) : %.2f '
% (np.sqrt(test_score[1]), test_score[2]))
model_loss(history)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment