I know that the function determines the optimal number of clusters of dataset that i want to analyze.
And one day I used it, and it showed that only the minimum clusters are the best. I mean for example
nc = NbClust(df, min.nc=2, max.nc=4, method='kmeans') > cluster = 2
nc = NbClust(df, min.nc=2, max.nc=100, method='kmeans') > cluster = 2
nc = NbClust(df, min.nc=30, max.nc=100, method='kmeans') > cluster = 30
So, what i am wondering are
- which does basically determine the optimal number of cluster when I use NbClust?
- why such that things happen(coz I thought the number of optimal clusters would vary whenever I set the condition different)?