Skip to content
/ pyrcc Public

Python implementation of Robust Continuous Clustering

License

Notifications You must be signed in to change notification settings

yhenon/pyrcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pyrcc

A python implementation of Robust Continuous Clustering.

The original matlab implementation can be found here.

Sklearn style demonstration:

rcc_clustering

RCC is a clustering method introduced here: https://www.pnas.org/content/early/2017/08/28/1700770114

This is a port of the matlab implementation provided by the authors.

The code is self-contained in rcc.py

The following parameters are used in RCC:

  • k: (int)(deafult 10) number of neighbors used in the mutual KNN graph
  • verbose: (bool)(default True) verbosity
  • preprocessing: (string)(default "none") one of 'scale', 'minmax', 'normalization', 'none'. How to preprocess the features
  • measure: (string)(default "euclidean") one of 'cosine' or 'euclidean'. Paper used 'cosine'. Metric to use in constructing the mutual KNN graph
  • clustering_threshold: (float)(default 1.0) controls how agressively to assign points to clusters.

A demonstration of how to use this is shown in demo.py, measuring the AMI (adjusted mutual information) using the pendigits dataset.

About

Python implementation of Robust Continuous Clustering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages