A Python package for Clustering by fast search and find of density peaks
Project description
This Python package implements the clustering algorithm proposed by Alex Rodriguez and Alessandro Laio. It generates the initial rho and delta values for each observation then use these values to assign observations to clusters.
Installation
This version is for both python2 and python3. The first step is to install Python. Python is available from the Python project page . The next step is install sharepathway.
Install from PyPi using pip, a package manager for Python:
$ pip install Dcluster
Or, you can download the source code at Github or at PyPi for Dcluster, and then run:
$ python setup.py install
Usage
The only input is the distance metrics between observations. See the test.dat. Dcluster supports interacive clustering based on decision graph:
import Dcluster as dcl filein="test.dat" dcl.run(fi=filein)
Test data
See the test.dat in test/
Contact
Author: Guipeng Li
Email: guipeng.lee@gmail.com
Refences
Rodriguez, A., & Laio, A. (2014). Clustering by fast search and find of density peaks. Science, 344(6191), 1492-1496. (paper)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.