Skip to content

A modification of the spectral clustering algorithm that imposes constraints on cluster sizes.

Notifications You must be signed in to change notification settings

anamabo/Equal-Size-Spectral-Clustering

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Equal-Size Spectral Clustering

This is a modification of the spectral clustering code that builds clusters balanced in the number of points. A detailed explanation of this algorithm can be found in this Medium blog post.

Prerequisities

You need to install Python 3.9. There is a Pipfile to install the required libraries.

Toy datasets

In the folder datasets we have provided you with a toy dataset so you can run the clustering code right away. Specifications of the input dataset are explained in the blog post.

Examples

  • example1.py: From a set of hyperparameters, you obtain clusters with sizes roughly equal to N / nclusters
  • example2.py: From a range of cluster sizes, you obtain the clusters hyperparameters to run the clustering code.

About

A modification of the spectral clustering algorithm that imposes constraints on cluster sizes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages