Skip to content

Implement RMSE (root-mean-square error) metric and scorer #12895

Closed

Description

@qinhanmin2014

RMSE seems to be a popular metric but now one has to calculate it through np.sqrt(mean_squared_error(XXX, XXX)). Maybe we can add squared option to mean_squared_error and add a scorer neg_root_mean_squared_error.
Wiki page: https://en.wikipedia.org/wiki/Root-mean-square_deviation

Activity

  1. gykovacs commented on Jan 1, 2019

    @gykovacs

    As the square root is a monotonic function on the positive domain, taking the square root would have no effect on any model selection. Could you please mention a use-case when it taking the root has some real advantage?

  2. qinhanmin2014 commented on Jan 2, 2019

    @qinhanmin2014
    MemberAuthor

    As the square root is a monotonic function on the positive domain, taking the square root would have no effect on any model selection

    This is why we reject it previously I think (though I'm unable to find relevant discussions)
    I'd argue that given the popularity of RMSE, it might be worthwhile to add several lines of (redundant) code for it (we only need <5 lines of code for the metric I think)
    Sometimes users might want to report the RMSE of their model instead of MSE, because RMSE is more meaningful (i.e., it reflects the deviation between actual value and predicted value).

  3. urvang96 commented on Jan 2, 2019

    @urvang96
    Contributor

    Hi,
    If there is a consensus on this I would like to give this a try.

  4. qinhanmin2014 commented on Jan 3, 2019

    @qinhanmin2014
    MemberAuthor

    If there is a consensus on this I would like to give this a try.

    not yet, please wait or try another issue.

  5. qinhanmin2014 commented on Mar 12, 2019

    @qinhanmin2014
    MemberAuthor

    Hmm, I found #6457 (comment)

  6. added
    Easy
    good first issue
    on Mar 12, 2019
  7. urvang96 commented on Mar 17, 2019

    @urvang96
    Contributor

    I would like to work on this.

  8. alokranjan1234 commented on Aug 5, 2019

    @alokranjan1234

    Is this still open? I would like to work on it.

  9. qinhanmin2014 commented on Aug 5, 2019

    @qinhanmin2014
    MemberAuthor

    you can start your work based on the stalled PR.

  10. amueller commented on Aug 5, 2019

    @amueller
    Member

    I think we should indeed add this.

  11. urvang96 commented on Aug 5, 2019

    @urvang96
    Contributor

    @amueller @qinhanmin2014 Could you please review the PR, which I created. PR #13467

  12. linehammer commented on Jun 8, 2021

    @linehammer

    Mean Squared Error ( MSE ) is defined as Mean or Average of the square of the difference between actual and estimated values. This means that MSE is calculated by the square of the difference between the predicted and actual target variables, divided by the number of data points. It is always non–negative values and close to zero are better.

    Root Mean Squared Error is the square root of Mean Squared Error (MSE). This is the same as Mean Squared Error (MSE) but the root of the value is considered while determining the accuracy of the model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Easygood first issuehelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions