Is there a library function for Root mean square error (RMSE) in python?
Asked 07 September, 2021
Viewed 1.5K times
  • 54
Votes

I know I could implement a root mean squared error function like this:

def rmse(predictions, targets):
    return np.sqrt(((predictions - targets) ** 2).mean())

What I'm looking for if this rmse function is implemented in a library somewhere, perhaps in scipy or scikit-learn?

11 Answer