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

Create Silhouette coefficient for KMeans clustering. #3

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

shayandavoodii
Copy link

PR for calculating Silhouette coefficient for KMeans clustering by ClusterAnalysis.jl. In this PR, I propose two ways of calculating the metric. A primary way (which has even more computation cost than KMeans) and a Simplified version for big datasets. You can determine when to switch to the Simplified version by changing 10^3 in if big(size(data, 1))^2 > 10^3 based on the Silouhette function.
Also, I brought a little benchmarking here:
https://discourse.julialang.org/t/silhouette-coefficient-calculation/89861/6?u=shayan

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.

1 participant