-
-
Notifications
You must be signed in to change notification settings - Fork 26.6k
MNT Deprecate affinity in AgglomerativeClustering
#23470
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
thomasjpfan
left a comment
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'm a bit undecided if this is worth the deprecation cycle. I think it comes down to "do we want to switch from affinity everywhere". If yes, then I think it's worth going through deprecation.
I think the questionable case is AffinityPropagation. Should affinity in AffinityPropagation by renamed to metric?
It's definitely something that should happen in series, if at all, otherwise having only some mentions move to
I think that should stay affinity. The docstring specifies that |
thomasjpfan
left a comment
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.
Let's go with the deprecation.
Co-authored-by: Thomas J. Fan <[email protected]>
…it-learn into deprecate_affinity
|
I just sync with |
glemaitre
left a comment
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.
Looks good.
Co-authored-by: Guillaume Lemaitre <[email protected]>
thomasjpfan
left a comment
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.
Small comment otherwise LGTM!
|
Could you modify the following example as well to avoid raising the warning:
|
Fixed, good catch. I think that |
|
LGTM THanks @Micky774 |
…3470) Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Guillaume Lemaitre <[email protected]>
…3470) Co-authored-by: Thomas J. Fan <[email protected]> Co-authored-by: Guillaume Lemaitre <[email protected]>
|
Hi! Can we change just change the keyword from |
Yes, you should be able to replace |
Reference Issues/PRs
Resolves #13945
What does this implement/fix? Explain your changes.
Deprecates
affinityin favor ofmetricinAgglomerativeClusteringAny other comments?
Probably worth propagating the deprecation to
linkage_treein a follow-up PR.