Skip to content

Implementation code for our paper "Refining a k-nearest neighbor graph for a computationally efficient spectral clustering"

Notifications You must be signed in to change notification settings

mashaan14/Spectral-Clustering

Repository files navigation

Spectral-Clustering

DOI Paper Papers with Code

Refining a $k$-nearest neighbor graph for a computationally efficient spectral clustering

If you use the code in this repository, please cite this paper:

@article{ALSHAMMARI2021107869,
 title 	= {Refining a k-nearest neighbor graph for a computationally efficient spectral clustering},
 author = {Mashaan Alshammari and John Stavrakakis and Masahiro Takatsuka},
 journal = {Pattern Recognition},
 year 	= {2021},
 volume	= {114},
 pages 	= {107869},
 doi 	= {https://doi.org/10.1016/j.patcog.2021.107869}	
}

How to use the files?

BATCH_Points.m executes the following:

  1. run PRE_Points.m to load toy data. The groundtruth labels are in .csv files.
    • OPTIONAL: let variable PlotShow = true if you want to see the plots
  2. if variable $k$ equals zero means number of clusters is unknown and the algorithm will try to guess it
    • RUN_Points_VQ.m to perform approximate spectral clustering for:
      • $k$-means approximation + local sigma edges
      • SOM approximation + local sigma edges
      • $k$-means approximation + CONN edges
      • SOM approximation + CONN edges
      • $k$-means approximation + CONNHybrid edges
      • SOM approximation + CONNHybrid edges
    • RUN_Points_Fast.m to perform spectral clustering with the proposed refined $k$-nearest nieghbor
  3. if variable $k$ does not equal zero means number of clusters is known and the algorithm will cluster data to $k$ clusters
    • RUN_Points_VQ.m to perform approximate spectral clustering for:
      • $k$-means approximation + local sigma edges
      • SOM approximation + local sigma edges
      • $k$-means approximation + CONN edges
      • SOM approximation + CONN edges
      • $k$-means approximation + CONNHybrid edges
      • SOM approximation + CONNHybrid edges
    • RUN_Points_Fast.m to perform spectral clustering with the proposed refined $k$-nearest nieghbor
  4. POST_Points.m to compute the accuracy and adjusted Rand index of clustering

About

Implementation code for our paper "Refining a k-nearest neighbor graph for a computationally efficient spectral clustering"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published