Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Python
  3. Question
Python

Is there a library function for Root mean square error (RMSE) in python?

Asked by Christian Parsons Mar 7, 2021 2.9K views 1 answer
Share

About this question

 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?

Your answer

1 Answer

More Python discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Python Blogs

Guides, tips and career advice on Python from JanBask experts.