Skip to content

DOC Replace the Consensus Index TODO in the clustering metrics guide - #35267

Merged
ArturoAmorQ merged 4 commits into
scikit-learn:mainfrom
cakedev0:doc-remove-consensus-index-todo
Nov 3, 2026
Merged

ArturoAmorQ merged 4 commits into
scikit-learn:mainfrom
cakedev0:doc-remove-consensus-index-todo

Conversation

@cakedev0

@cakedev0 cakedev0 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

Reference Issues/PRs

Follow-up of #11778.

What does this implement/fix? Explain your changes.

Replaces the 2011 "Consensus Index ... (TODO)" sentences in the Rand index and MI drawbacks, which promised a model selection method that was never developed. They now say what these metrics can do without ground truth: compare two clusterings of the same data.

AI usage disclosure

  • Research and understanding
  • Phrasing

@cakedev0 cakedev0 changed the title DOC Remove the Consensus Index TODO from the clustering metrics guide DOC Replace the Consensus Index TODO in the clustering metrics guide Oct 30, 2026
@github-actions github-actions Bot added size/S and removed size/XS labels Oct 30, 2026
@cakedev0
cakedev0 marked this pull request as ready for review October 30, 2026 06:51
@cakedev0
cakedev0 requested a review from ArturoAmorQ October 30, 2026 06:51

@ArturoAmorQ ArturoAmorQ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR and for pinging me @cakedev0 :) I agree it's better to say what they do instead of making promises of what they could be used for.

I am just unsure about the "stability across [...] algorithms" wording. For me stability is measured for each given algorithm. Maybe you meant "agreement between algorithms"?

Regarding stability only, I would rather say "across random seeds for the initialization, or random subsamples of the data".

@cakedev0

cakedev0 commented Nov 3, 2026

Copy link
Copy Markdown
Member Author

Thanks for the review! You're right, I changed the wording based on your suggestions.

Fun fact: IIUC subsample stability is what the original "Consensus Index" TODO referred to (Vinh & Epps choose n_clusters by maximizing the average AMI between clusterings of random subsamples). So your suggestion brings back the useful part of that sentence 👌

cakedev0 added a commit to cakedev0/my-scikit-learn-backlog that referenced this pull request Nov 3, 2026
drop: Linear: answer lorentzenchr's inline concerns on [sklearn#35196](scikit-learn/scikit-learn#35196) (minimum norm newton-cholesky), closed without merging in favor of [sklearn#34339](scikit-learn/scikit-learn#34339)
todo: move [sklearn#35267](scikit-learn/scikit-learn#35267) from Now to Waiting, ArturoAmorQ's wording suggestions applied
todo: david-cortes-intel's note on the OpenMP OpenBLAS build on [blog#228](scikit-learn/blog#228)

Co-Authored-By: Claude Opus 5.5 <[email protected]>

@ArturoAmorQ ArturoAmorQ left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thanks @cakedev0 :) merging!

@ArturoAmorQ
ArturoAmorQ merged commit 5b82c06 into scikit-learn:main Nov 3, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants