ENH Set Affinity propagation labels if any clusters were found - #22217
Conversation
- Changed behavior to output any clusters/labels generated even if not fully converged - Modified documentation to reflect this behaviour
thomasjpfan
left a comment
There was a problem hiding this comment.
Thanks for the PR @Micky774 ! Implementation looks good. I left a comment about backward compatible for core-devs to decide on.
|
For the time being, we can add a whats new so changelog test passes. |
Done. I added it under |
It's almost always the next minor release, which is currently |
jeremiedbb
left a comment
There was a problem hiding this comment.
I'm ok with the backward incompatible change. It's what we agreed on in the issue.
LGTM. Thanks @Micky774 !
|
@thomasjpfan Just wanted to see if there were any other revisions you'd like to see, or if this is ready to merge |
thomasjpfan
left a comment
There was a problem hiding this comment.
Minor suggestion for the whats new. otherwise LGTM!
Co-authored-by: Thomas J. Fan <[email protected]>
…t-learn#22217) Co-authored-by: Thomas J. Fan <[email protected]>
Reference Issues/PRs
Fixes #17657
What does this implement/fix? Explain your changes.
Current plan is to change behavior so that regardless of convergence, AffinityPropagation returns its generated cluster centers (if any) and labels. To do this I will change documentation (and warnings) to emphasize that un-converged results may be degenerate and should be accepted at the user's own risks.
Any other comments?
Open to suggestions on behavior changes