Repository navigation
FIX validate parameter if fit in KernelDensity - #21430
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. |
ogrisel
left a comment
There was a problem hiding this comment.
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` |
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 [email protected]
…learn#21430) Co-Authored-By: Lucy Jiménez [email protected]
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