Skip to content

Instantly share code, notes, and snippets.

@nimpy
Created May 6, 2020 09:22
Show Gist options
  • Save nimpy/afea478a55c2249b35b264bec6b0162b to your computer and use it in GitHub Desktop.
Save nimpy/afea478a55c2249b35b264bec6b0162b to your computer and use it in GitHub Desktop.
Compute Root MSE between two arrays
def rmse(a, b):
# Root MSE (Mean Squared Error)
return np.sqrt(np.mean(np.square(np.subtract(a, b, dtype=np.float32))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment