-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
MAINT Parameters validation for sklearn.metrics.mean_absolute_error
#24943
Conversation
You will be able to remove the linting error by merging |
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this 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
@mknz There is a merge conflict with this PR. May you sync with 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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mknz
Thanks for reviewing and comments! @jeremiedbb @thomasjpfan @jeremiedbb |
Reference Issues/PRs
Towards #24862
What does this implement/fix? Explain your changes.
Added
validate_params
decorator tosklearn.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.