Skip to content

Instantly share code, notes, and snippets.

@animesh-agarwal
Last active September 29, 2018 10:25
Show Gist options
  • Save animesh-agarwal/e6d4f3f8db54bda072e5d48afa9cffaf to your computer and use it in GitHub Desktop.
Save animesh-agarwal/e6d4f3f8db54bda072e5d48afa9cffaf to your computer and use it in GitHub Desktop.
# mean squared error
mse = np.sum((y_pred - y_actual)**2)
# root mean squared error
# m is the number of training examples
rmse = np.sqrt(mse/m)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment