Skip to content

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

Merged
rth merged 13 commits into
scikit-learn:masterfrom
urvang96:rmse_my_feature
Aug 7, 2019
Merged

rth merged 13 commits into
scikit-learn:masterfrom
urvang96:rmse_my_feature

Conversation

@urvang96

Copy link
Copy Markdown
Contributor

Reference Issues/PRs
Fixes #12895
Implement RMSE (root-mean-square error) metric and scorer

What does this implement/fix? Explain your changes.
Added a boolean parameter in MSE implementation to return RMSE value, if set to true. Also added an RMSE scorer.

Any other comments?
One test.

@urvang96

Copy link
Copy Markdown
Contributor Author

As per my understanding, I have added the scorer. Let me know if I missed something.
Thank you in advance.

@qinhanmin2014

Copy link
Copy Markdown
Member

@urvang96 urvang96 changed the title [WIP]Implement RMSE (root-mean-square error) metric and scorer Implement RMSE (root-mean-square error) metric and scorer Mar 22, 2019
Comment thread sklearn/metrics/regression.py Resolved
Comment thread sklearn/metrics/regression.py Resolved
Comment thread sklearn/metrics/regression.py Resolved
Comment thread sklearn/metrics/regression.py Resolved
Comment thread sklearn/metrics/regression.py Resolved
Comment thread sklearn/metrics/scorer.py Resolved
@qinhanmin2014

qinhanmin2014 commented Mar 30, 2019 •

Copy link
Copy Markdown
Member

@qinhanmin2014

Copy link
Copy Markdown
Member

I think we need more tests, e.g., test_regression_multioutput_array and test_regression_metrics_at_limits.

@xinyuliu12

Copy link
Copy Markdown
Contributor

May I try continuing work on this?

@urvang96

urvang96 commented Apr 20, 2019 •

Copy link
Copy Markdown
Contributor Author

@xinyuliu12 Actually I am waiting for a review on this. Also, I am not sure about the doc failures in the commit so if you want you can help with that.

@qinhanmin2014 Could you please review and let me know if any changes required.

@thomasjpfan

Copy link
Copy Markdown
Member

@urvang96 Merge with master should fix the doc tests

@qinhanmin2014 qinhanmin2014 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an entry to the change log at doc/whats_new/v*.rst. Like the other entries there, please reference this pull request with :pr: and credit yourself (and other contributors if applicable) with :user:.

@urvang96

urvang96 commented Aug 5, 2019

Copy link
Copy Markdown
Contributor Author

@qinhanmin2014 Added the changes in whats_new. Thank you.

Comment thread sklearn/metrics/regression.py Resolved
Comment thread sklearn/metrics/regression.py Outdated

return np.average(output_errors, weights=multioutput)
mse = np.average(output_errors, weights=multioutput)
if not squared:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit:

return mse if squared else np.sqrt(mse)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rth rth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as well, thanks @urvang96 !

@rth
rth merged commit 6425a8f into scikit-learn:master Aug 7, 2019
davidgegiya added a commit to davidgegiya/agent-orchestrator that referenced this pull request Nov 8, 2026
…ic and scorer

Pin a83c8311dfdbf74dea584d45c6f254bc8171054d and its regression selectors for reproducible runs.

Source: scikit-learn/scikit-learn#13467
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

6 participants