8000 FIX Calinski and Harabasz score description by rsnegrin · Pull Request #22605 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

FIX Calinski and Harabasz score description #22605

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

Merged
merged 1 commit into from
Feb 25, 2022
Merged

FIX Calinski and Harabasz score description #22605

merged 1 commit into from
Feb 25, 2022

Conversation

rsnegrin
Copy link
Contributor
@rsnegrin rsnegrin commented Feb 24, 2022

What does this implement/fix? Explain your changes.

Calinski and Harabasz score is wrong defined in the source code.
The ratio is turned around (only on the explanation).
This fix modifies the definition for it to be correct.

Copy link
Member
@ogrisel ogrisel left a comment

Choose a reason for hiding this comment

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

Thanks for the fix.

For information, the user guide was already correct:

https://scikit-learn.org/stable/modules/clustering.html#calinski-harabasz-index

The index is the ratio of the sum of between-clusters dispersion and of within-cluster dispersion for all clusters (where dispersion is defined as the sum of distances squared).

Copy link
Member
@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thanks for the fix. LGTM!

@thomasjpfan thomasjpfan merged commit d548c77 into scikit-learn:main Feb 25, 2022
thomasjpfan pushed a commit to thomasjpfan/scikit-learn that referenced this pull request Feb 26, 2022
thomasjpfan pushed a commit to thomasjpfan/scikit-learn that referenced this pull request Mar 1, 2022
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.

3 participants
0