Skip to main content

Clustering by fast search and find of density peaks

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. Dcluster depends on numpy and matplotlib. The next step is to install Dcluster.

You can download the source code at Github or at PyPi for Dcluster, and then run:

$ python setup.py install

Or install from PyPi using pip , a package manager for Python:

$ pip install Dcluster

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, sep='\t')

Test data

See the test.dat in test/. One can choose different cluster centers based on Decision Graph. And please first press key ‘n’ then ‘Enter’ to quit. Result will be saved automatically.

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)

Metadata

Release files for Dcluster 0.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Dcluster 0.5.2
File Size Uploaded Provenance Actions
Dcluster-0.5.2.tar.gz 18.1 kB Without provenance Details for Dcluster-0.5.2.tar.gz

Release files / Dcluster-0.5.2.tar.gz

Download URL Dcluster-0.5.2.tar.gz
Size 18.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e3b28a655106573827255d87371f5c25c9db26bdedfdc83383333850eba37b8b
BLAKE2b-256 checksum
How to use checksums
0ccbd6c2fff11e46bd7a96d7350770977a77580a22fd8d741b8ff8cb09a6eda3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for Dcluster 0.5.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page