MNT Deprecate affinity in AgglomerativeClustering#23470
MNT Deprecate affinity in AgglomerativeClustering#23470glemaitre merged 27 commits intoscikit-learn:mainfrom
affinity in AgglomerativeClustering#23470Conversation
thomasjpfan
left a comment
There was a problem hiding this comment.
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.
Let's go with the deprecation.
Co-authored-by: Thomas J. Fan <[email protected]>
|
I just sync with |
Co-authored-by: Guillaume Lemaitre <[email protected]>
thomasjpfan
left a comment
There was a problem hiding this comment.
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.