Skip to content

MAINT Parameters validation for sklearn.metrics.mean_absolute_error #24943

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 30, 2022

Conversation

mknz
Copy link
Contributor

@mknz mknz commented Nov 15, 2022

Reference Issues/PRs

Towards #24862

What does this implement/fix? Explain your changes.

Added validate_params decorator to sklearn.metrics.mean_absolute_error.

Any other comments?

There are already validation codes in this function. Since they are checking the contents of input data, I left the part as it is.

@glemaitre
Copy link
Member

You will be able to remove the linting error by merging main into your branch. This has been fixed already.

@glemaitre glemaitre self-requested a review November 15, 2022 18:14
Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

I don't find redundant tests. So apart from the comment, everything LGTM.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM.

@jeremiedbb jeremiedbb added the Validation related to input validation label Nov 18, 2022
Copy link
Member

@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @mknz ! LGTM

@thomasjpfan
Copy link
Member

@mknz There is a merge conflict with this PR. May you sync with main?

If you are having issues, you can check "Allow edits by maintainers" in the right side panel in the GitHub UI in this PR. This allows a maintainer to fix the merge conflict for you.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

Thanks @mknz

@jeremiedbb jeremiedbb merged commit 3190963 into scikit-learn:main Nov 30, 2022
@mknz
Copy link
Contributor Author

mknz commented Nov 30, 2022

Thanks for reviewing and comments! @jeremiedbb @thomasjpfan @jeremiedbb

jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
jjerphan pushed a commit to jjerphan/scikit-learn that referenced this pull request Jan 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants