-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
FIX validate parameter if fit
in KernelDensity
#21430
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
Conversation
Looks good but I think the title doesn't match the PR. This is not about accelerating the test but about not checking parameters in |
You actually also need to change |
@amueller changed the PR message, let me know if the new one makes sense. Thanks! |
Sorry @DessyVV my bad, I was switching between tables and suggested that title wrongly. |
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!
@thomasjpfan you put the "no changelog needed" label. I assume that we will have one changelog entry for all the models at once in the top level changed models section once we merge all the PRs for this issue?
Before merging, @DessyVV would you please add an empty commit with the following
and then write something like the following in the commit message:
to add co-authorship for this PR to @LucyJimenez? The |
This was by mistake. I think it would be better to add the change log here. |
fit
in KernelDensity
We can solve the remaining failure by adding an entry in the changelog. Please add an entry to the change log at - |Fix| :class:`neighbors.KernelDensity` nows validate input parameters in `fit`
instead of `__init__`.
:pr:`21430` by :user:`DessyVV <DessyVV>` and
:user:`Lucy Jimenez <LucyJimenez >`. It should in the section: :mod:`sklearn.neighbors` |
Co-Authored-By: Lucy Jiménez lucy.jimenez.chem@gmail.com
72b75c6
to
bf35d4d
Compare
Thanks @DessyVV @LucyJimenez |
Thanks, @glemaitre! Just noticed that it seems like issue #21406 is now closed. Do you if this because of the fix comment in this PR description? If yes, does the issue need to be reopened as this was just one of 12 tasks within the issue? Thanks! |
Thanks, I did not notice. I just reopened it.
|
…learn#21430) Co-Authored-By: Lucy Jiménez lucy.jimenez.chem@gmail.com
…learn#21430) Co-Authored-By: Lucy Jiménez lucy.jimenez.chem@gmail.com
Reference Issues/PRs
Partially Fixes #21406 by accelerating KDE tests
What does this implement/fix?
Moved the _choose_algorithm call from __init to fit. And changed test_kde_algorithm_metric_choice to raise error when fit method is called.
cc: @ogrisel @LucyJimenez
#DataUmbrella sprint