Created
May 6, 2020 09:22
-
-
Save nimpy/afea478a55c2249b35b264bec6b0162b to your computer and use it in GitHub Desktop.
Compute Root MSE between two arrays
This file contains 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
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