If you take a dataset of 1000 objects and create clusters (ref: https://github.com/JustGlowing/minisom/blob/master/examples/Clustering.ipynb), you end up getting clusters of different sizes.
Further, using
# each neuron represents a cluster
winner_coordinates = np.array([sog.winner(x) for x in data]).T
# with np.ravel_multi_index we convert the bidimensional
# coordinates to a single dimensional index
cluster_index = np.ravel_multi_index(winner_coordinates, sog_shape)****
each cluster has 99, 43, 94, 74, 121 and so on number of objects.
Is there a way to create clusters that have same number of objects?
If you take a dataset of 1000 objects and create clusters (ref: https://github.com/JustGlowing/minisom/blob/master/examples/Clustering.ipynb), you end up getting clusters of different sizes.
Further, using
# each neuron represents a cluster
winner_coordinates = np.array([sog.winner(x) for x in data]).T
# with np.ravel_multi_index we convert the bidimensional
# coordinates to a single dimensional index
cluster_index = np.ravel_multi_index(winner_coordinates, sog_shape)****
each cluster has 99, 43, 94, 74, 121 and so on number of objects.
Is there a way to create clusters that have same number of objects?