Skip to content

Is there a way to create clusters of equal size?  #168

@mpati005

Description

@mpati005

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions