I am using K-Mode clustering to cluster categorical data, but when I cluster the data with the same number of clusters, it return different cluster sizes every time
I was expecting that the cluster sizes will be always fixed if I am running it on the same data and with the same number of clusters
am I doing something wrong?
library(klaR)
mysample=read.csv("sample_to_cluster.csv")
results1 <-kmodes(mysample[,2:ncol(mysample)],3 , iter.max = 50, weighted = FALSE )
results2 <-kmodes(mysample[,2:ncol(mysample)],3 , iter.max = 50, weighted = FALSE )
print(results1$size)
print(results2$size)
#why results1 & results2 don't have the same sizes
this is the CSV file I am using CSV