-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG] Removes input validation radiusneighborsclassifier #21518
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
[MRG] Removes input validation radiusneighborsclassifier #21518
Conversation
@thomasjpfan Hi Thomas, we found that |
…diusneighborsclassifier
I pushed a merge of the current |
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 @chritter !
We need to adjust the test to skip **kwargs
in RadiusNeighborsClassifier
:
def test_estimators_do_not_raise_errors_in_init_or_set_params(Estimator):
# Remove parameters with **kwargs by filtering out Parameter.VAR_KEYWORD
# TODO: Remove in 1.2 when **kwargs is removed in RadiusNeighborsClassifier
params = [
name
for name, param in signature(Estimator).parameters.items()
if param.kind != Parameter.VAR_KEYWORD
]
...
…nto removes_validation_radiusneighborsclassifier
Thank you for sharing this solution. Learned again something new :) I will implement it into the test. |
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 update @chritter!
LGTM
For reviewers: I added the "No Changelog Required" label because there is no functional change to RadiusNeighborsClassifier
.
…n#21518) Co-authored-by: Fortune Uwha <fortune.uwha@gmail.com> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
…n#21518) Co-authored-by: Fortune Uwha <fortune.uwha@gmail.com> Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Reference Issues/PRs
Addresses #21406
What does this implement/fix? Explain your changes.
Remove input validation for RadiusNeighborsClassifier
set_params
.Any other comments?
Work with @fortune-uwha
#DataUmbrella