Skip to main content

Fast hierarchical clustering routines for R and Python.

Project description

This library provides Python functions for hierarchical clustering. It generates hierarchical clusters from distance matrices or from vector data.

This module is intended to replace the functions

    linkage, single, complete, average, weighted, centroid, median, ward

in the module scipy.cluster.hierarchy with the same functionality but much faster algorithms. Moreover, the function linkage_vector provides memory-efficient clustering for vector data.

The interface is very similar to MATLAB's Statistics Toolbox API to make code easier to port from MATLAB to Python/NumPy. The core implementation of this library is in C++ for efficiency.

User manual: fastcluster.pdf.

The “Yule” distance function changed in fastcluster version 1.2.0. This is following a change in SciPy 1.6.3. It is recommended to use fastcluster version 1.1.x together with SciPy versions before 1.6.3 and fastcluster 1.2.x with SciPy ≥1.6.3.

The fastcluster package is considered stable and will undergo few changes from now on. If some years from now there have not been any updates, this does not necessarily mean that the package is unmaintained but maybe it just was not necessary to correct anything. Of course, please still report potential bugs and incompatibilities to daniel@danifold.net. You may also use my GitHub repository for bug reports, pull requests etc.

Note that PyPI and my GitHub repository host the source code for the Python interface only. The archive with both the R and the Python interface is available on CRAN and the GitHub repository “cran/fastcluster”. Even though I appear as the author also of this second GitHub repository, this is just an automatic, read-only mirror of the CRAN archive, so please do not attempt to report bugs or contact me via this repository.

Installation files for Windows are provided on PyPI and on Christoph Gohlke's web page.

Christoph Dalitz wrote a pure C++ interface to fastcluster.

Reference: Daniel Müllner, fastcluster: Fast Hierarchical, Agglomerative Clustering Routines for R and Python, Journal of Statistical Software, 53 (2013), no. 9, 1–18, https://doi.org/10.18637/jss.v053.i09.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastcluster-1.2.5.tar.gz (173.7 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

fastcluster-1.2.5-cp310-cp310-win_amd64.whl (36.0 kB view details)

Uploaded CPython 3.10Windows x86-64

fastcluster-1.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (184.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ ARM64

fastcluster-1.2.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (194.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

fastcluster-1.2.5-cp39-cp39-win_amd64.whl (36.0 kB view details)

Uploaded CPython 3.9Windows x86-64

fastcluster-1.2.5-cp39-cp39-win32.whl (32.7 kB view details)

Uploaded CPython 3.9Windows x86

fastcluster-1.2.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (184.1 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ ARM64

fastcluster-1.2.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (193.7 kB view details)

Uploaded CPython 3.9manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

fastcluster-1.2.5-cp39-cp39-macosx_11_0_x86_64.whl (39.9 kB view details)

Uploaded CPython 3.9macOS 11.0+ x86-64

fastcluster-1.2.5-cp38-cp38-win_amd64.whl (36.0 kB view details)

Uploaded CPython 3.8Windows x86-64

fastcluster-1.2.5-cp38-cp38-win32.whl (32.7 kB view details)

Uploaded CPython 3.8Windows x86

fastcluster-1.2.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (184.4 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ ARM64

fastcluster-1.2.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (194.1 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.17+ x86-64manylinux: glibc 2.5+ x86-64

File details

Details for the file fastcluster-1.2.5.tar.gz.

File metadata

  • Download URL: fastcluster-1.2.5.tar.gz
  • Upload date:
  • Size: 173.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fastcluster-1.2.5.tar.gz
Algorithm Hash digest
SHA256 aea2add506cd12b2560860d3e7ab0737a359fecd377d8f70aacf9bd55d244ab2
MD5 7d48c9b8ec1710fc800c48d3cd9b667e
BLAKE2b-256 38dce982bfaf1336cfe111a5c2f1ace609648c304bb109f794d23aa12eb4c56c

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: fastcluster-1.2.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fastcluster-1.2.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 f39057c31f0ebfab60fec4738eb73fa5907cdc09cf580bb332a11a3bb3a843af
MD5 bf128a75f321390b154ef3913d3094a6
BLAKE2b-256 ab49bec6427f319cfce057089fca070ff8ea820d2300b03abf42fad67c849ef8

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fastcluster-1.2.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 e0f912496891ee56f0c64d6fe74fe31fa14a33b36d141d4dcebfada32dd865b6
MD5 3bdcf45049ff10576cb56f2b642b0b91
BLAKE2b-256 d6b3d76d5ee5e6c2760c6cdbb3e3063f5cc5efe10bb3e739b7dc4f870cdbd61e

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastcluster-1.2.5-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8a01dcf928e23c089ca94a095663f195d6d962ae85c011a0a368f6fcd794b3c5
MD5 5bf9efc5bf2c83ba2577079e564e54de
BLAKE2b-256 9275db64a6450e4f61be46e3bcd4333de20b34bf60042e0f8fe2743cc418aa95

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp39-cp39-win_amd64.whl.

File metadata

  • Download URL: fastcluster-1.2.5-cp39-cp39-win_amd64.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: CPython 3.9, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fastcluster-1.2.5-cp39-cp39-win_amd64.whl
Algorithm Hash digest
SHA256 d2a4b51a4985867382e303423c3e2a8cd4842dea76e92e6613e75a00f39673fa
MD5 558b46a46154bec6be7c97fbe84b5715
BLAKE2b-256 25e30bc42f87aa1d7c7de7fa8cd12d06925f4cf6bcf7cd1e64e7864084c6225a

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp39-cp39-win32.whl.

File metadata

  • Download URL: fastcluster-1.2.5-cp39-cp39-win32.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: CPython 3.9, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fastcluster-1.2.5-cp39-cp39-win32.whl
Algorithm Hash digest
SHA256 c1aea17878e5c7892ab76be9152de9085bf529bf2176a8cb4833c0a19a1e9129
MD5 685256e2626988ffced64217f3ecb7b3
BLAKE2b-256 40e2e0216d0e53af45af62d8ff22485a2667ba73863f6e16cdfc9df5353a4810

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fastcluster-1.2.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 36e85a17d1f90e89fdca7f16aa7ea3ef7e18e396f6831469b83d668449defd03
MD5 f0a177983719e50dcb8d3a30433ae65f
BLAKE2b-256 ab5daec77a553a25dce1a95c79322d817c102b8e1f7fe5b454624cfbf4697042

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastcluster-1.2.5-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 aadd58d8f1f0c07d52121a0cac35bcde8cb5426f431f98e66ad200ec0aab2d02
MD5 9d8693091183923067347cd51bc59eb1
BLAKE2b-256 d0c70fed1738a0b2afeb17bf8fafd9b5d4f84f554b36b6c16800d3002914d685

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp39-cp39-macosx_11_0_x86_64.whl.

File metadata

  • Download URL: fastcluster-1.2.5-cp39-cp39-macosx_11_0_x86_64.whl
  • Upload date:
  • Size: 39.9 kB
  • Tags: CPython 3.9, macOS 11.0+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fastcluster-1.2.5-cp39-cp39-macosx_11_0_x86_64.whl
Algorithm Hash digest
SHA256 4682882fddee9093f0764b56b05174d556e0fb2efd5190bbaf924b73848bf35e
MD5 2c5b2eadd4cecd0c9821b6d44deefecc
BLAKE2b-256 cac2dfaec55e987a1dd0e9b69723b73ca3c7f561197b3da19f9ec31136f9b10f

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: fastcluster-1.2.5-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fastcluster-1.2.5-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 3056b9ca0e6aef6c0d4f4b150b779190a5699f1350bc09c76ae11c8dd4888e87
MD5 69e6a288f52268841b330665d9a079f0
BLAKE2b-256 1bd76d8e53e9391398f9a9fcc407fb69123968bbc85b7825cba9aac11f007ae2

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp38-cp38-win32.whl.

File metadata

  • Download URL: fastcluster-1.2.5-cp38-cp38-win32.whl
  • Upload date:
  • Size: 32.7 kB
  • Tags: CPython 3.8, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.5.0 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

File hashes

Hashes for fastcluster-1.2.5-cp38-cp38-win32.whl
Algorithm Hash digest
SHA256 d714468bd7973fddff16afb435a9df5026a87685cf732c4e1deb779db4c68551
MD5 dc48d4268304b7ef5fa94a471de4e99d
BLAKE2b-256 e527d75fb6e1fa18f17506cf906cfc2aceac27bdca69e339b698fbbb6e0d79a8

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for fastcluster-1.2.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a9ecf7d944fd7473a87524ca16a1fd341d1adfb656c63eb9136049a6958a2584
MD5 389c682a6f4fe4286b51714a1743d134
BLAKE2b-256 620fe0ac2380c0e4c8ea55c2c7c38ae8b4afc1537cb3715455ff40892c1d18b9

See more details on using hashes here.

File details

Details for the file fastcluster-1.2.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for fastcluster-1.2.5-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 07695eb3d967431c55e6e3b797531ff5e274ff3a48289db78544d2167073644b
MD5 54cb0f3ad9066d5af83e65ab45092bbb
BLAKE2b-256 de93214ad7bec44af1b0c269285660b74da497e2239a87958682b823bc34c7e2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page