Skip to content
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

Fixed formula for inertia in clustering doc Issue #10709 #10710

Merged
merged 1 commit into from
Feb 26, 2018

Conversation

danielleshwed
Copy link
Contributor

Reference Issues/PRs

Improve documentation: incorrect indices in within-cluster sum formula
Fixes #10709

What does this implement/fix? Explain your changes.

Fixed the formula for the inertia, or within-cluster sum of squares:

\sum_{i=0}^{n}\min_{\mu_j \in C}(||x_j - \mu_i||^2)

is now

\sum_{i=0}^{n}\min_{\mu_j \in C}(||x_i - \mu_j||^2)

@jnothman
Copy link
Member

LGTM, thanks!

@jnothman jnothman merged commit 2e30df3 into scikit-learn:master Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve documentation: incorrect indices in within-cluster sum formula
2 participants