StatsPlots.jl icon indicating copy to clipboard operation
StatsPlots.jl copied to clipboard

Any interest in silhouette plots?

Open tobydriscoll opened this issue 6 years ago • 1 comments

I was motivated recently to make silhouette plots to look at the quality of a clustering with no known ground truth. If there is interest I can create a PR for it.

using Clustering,Plots,Distances,RecipesBase
X = hcat([rand(5,1) .+ 0.15*randn(5, 200) for _=1:3]...)
D = pairwise(Euclidean(),X,dims=2)
R = kmeans(D, 3; maxiter=200, display=:iter)
silhouetteplot(R,X,D)

silhouette plot example

tobydriscoll avatar Nov 17 '19 20:11 tobydriscoll

Yes, this would fit great here

mkborregaard avatar Nov 17 '19 20:11 mkborregaard