Skip to content
Back to formatted view

Raw Message

Message-ID: <CAJMZ3cdfECoFT-_T-kxco59E47iW6sDStTEAMLdFwe5LfRoo8Q@mail.gmail.com>
Date: 2013-11-16T23:12:58Z
From: email
Subject: selecting optimal cluster validation score

Hi:

I have calculated the Silhouette score and Dunn score after
hierarchical clustering for 3 clusters:

#Distance measure
d <- dist(USArrests, method = "euclidean")
#Hierarchical clustering
hc <- hclust(dist(USArrests), "ave")
#calculating silhouette value for 3 clusters
sil<- silhouette(cutree(hc, k=3), d)
#calculating Dunn index for 3 clusters
clus <- cutree(hc, 3)
dun <- dunn(d, clus)

How can the best of the two score be obtained? Is there any package to
automatically obtain the optimal (or best) of the Silhouette and the
Dunn scores ?

Regards:
John