Skip to main content
pypi Download Status Documentation Status License: MIT

CLASSIX is a fast and explainable clustering algorithm based on sorting. Here are a few highlights:

  • Ability to cluster low and high-dimensional data of arbitrary shape efficiently.

  • Ability to detect and deal with outliers in the data.

  • Ability to provide textual explanations for the generated clusters.

  • Full reproducibility of all tests in the accompanying paper.

  • Support of Cython compilation.

CLASSIX is a contrived acronym of CLustering by Aggregation with Sorting-based Indexing and the letter X for explainability. CLASSIX clustering consists of two phases, namely a greedy aggregation phase of the sorted data into groups of nearby data points, followed by a merging phase of groups into clusters. The algorithm is controlled by two parameters, namely the distance parameter radius for the group aggregation and a minPts parameter controlling the minimal cluster size.

Installing and example

CLASSIX has the following dependencies for its clustering functionality:

  • cython

  • numpy

  • scipy

  • requests

and requires the following packages for data visualization:

  • matplotlib

  • pandas

To install the current CLASSIX release via PIP use:

pip install classixclustering

To check the CLASSIX installation you can use:

python -m pip show classixclustering

Download the repository via:

git clone https://github.com/nla-group/classix.git

Example usage:

from sklearn import datasets
from classix import CLASSIX

# Generate synthetic data
X, y = datasets.make_blobs(n_samples=2000000, centers=4, n_features=10, random_state=1)

# Employ CLASSIX clustering
clx = CLASSIX(sorting='pca', verbose=1)
clx.fit(X)

Citation

@techreport{CG22b,
  title   = {Fast and explainable clustering based on sorting},
  author  = {Chen, Xinye and G\"{u}ttel, Stefan},
  year    = {2022},
  number  = {arXiv:2202.01456},
  pages   = {25},
  institution = {The University of Manchester},
  address = {UK},
  type    = {arXiv EPrint},
  url     = {https://arxiv.org/abs/2202.01456}

}

Download files

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

Source Distribution

classixclustering-1.5.2.tar.gz (1.5 MB view details)

Uploaded Source

Built Distributions

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

classixclustering-1.5.2-cp311-cp311-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.11Windows x86-64

classixclustering-1.5.2-cp311-cp311-win32.whl (2.1 MB view details)

Uploaded CPython 3.11Windows x86

classixclustering-1.5.2-cp311-cp311-musllinux_1_2_x86_64.whl (7.8 MB view details)

Uploaded CPython 3.11musllinux: musl 1.2+ x86-64

classixclustering-1.5.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (6.7 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

classixclustering-1.5.2-cp311-cp311-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

classixclustering-1.5.2-cp310-cp310-win_amd64.whl (2.2 MB view details)

Uploaded CPython 3.10Windows x86-64

classixclustering-1.5.2-cp310-cp310-win32.whl (2.1 MB view details)

Uploaded CPython 3.10Windows x86

classixclustering-1.5.2-cp310-cp310-musllinux_1_2_x86_64.whl (7.6 MB view details)

Uploaded CPython 3.10musllinux: musl 1.2+ x86-64

classixclustering-1.5.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (6.5 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

classixclustering-1.5.2-cp310-cp310-macosx_11_0_arm64.whl (2.3 MB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file classixclustering-1.5.2.tar.gz.

File metadata

  • Download URL: classixclustering-1.5.2.tar.gz
  • Upload date:
  • Size: 1.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.11

File hashes

Hashes for classixclustering-1.5.2.tar.gz
Algorithm Hash digest
SHA256 ab7816e1110b9665679ce0bf54a688f5cea50f5148a38974460057d4d5a28663
MD5 b50ea33902fd0f7dcb6ad3d342efe128
BLAKE2b-256 a28c76a688068d98544d70964d07b68966ea959a634e04e2b43dee15e2f07888

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 4e210e7c792c2f578d220b0977f45004d84e283884a57b6113c58018cf708852
MD5 9114c77ad82ec2e792cc127f0de0b5c2
BLAKE2b-256 c54ae2fd07b11f8401ebd9b2cd8b7ddd7943d0d254e6913b53d97e6b96d4206f

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp311-cp311-win32.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 81fe636e7848668a2b3c25c99779db0414d6bb08d1f9fc2e0bde67cedf22e49c
MD5 d05d3a5c94eb568c6fd719f3a50d2b86
BLAKE2b-256 ff5e7801305c2f2b1f519dad843cd381f542236c16ef3a07698272077eff2c3d

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp311-cp311-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 a7a11b219ce208e438699d982ec6593a8add4b8fde9423b60f4ef806bfb8d774
MD5 59f6d560fd7df28ce0a6a27cbfe38044
BLAKE2b-256 5b651a977423147a0ccbac349d6c33abb4596e3ce83a674c5cbd4c589c8ce382

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 e8ea2f206adf0f86b95e465ccdb1c4c9df85db3028c94f99d9341417ca40574b
MD5 407feed7aa5c83c6918e740858673006
BLAKE2b-256 33bdb056a2ac7be53a0d1e09ea21b2e8b0b880a86ff075e59ead599ff12e7e5d

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 afb2e969b5a1fd217a9e0c83e4a1c5587b820c228a6ddb2b2f90c47df5b000e8
MD5 718c4e4ce54f7f22d7e07fd4b2846ca0
BLAKE2b-256 4ee19daf03f32417a4c89819fdd2fc8fcc0158655f84730489a67452432c99b4

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp310-cp310-win_amd64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 d31c0e44fa9dc8e484fbd50b39ab369acb28d2179f26e3edd44c85697a4d2897
MD5 4ede5487b3cdbf39f385fa5675e18312
BLAKE2b-256 4e93440de2609b42bad680071f12ae3d697311470a59d0916bc682c330610967

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp310-cp310-win32.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 a9588c1e9e71853968d89ba8a6e11dc0d5d1b9f590ca6924e0315df2a4503c47
MD5 29b1786636122696910ed3573a478b44
BLAKE2b-256 187c29178dd0ec033d7432d4476a1ecf2e76a06e6aa5f20ab72a93ed9af7a55f

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp310-cp310-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 195b405093188d081446a5d359bb1be30099ec06163805df0a50b0c600a65386
MD5 94ea38f0d2c51ef2379cf14dce29988e
BLAKE2b-256 ba57c992c5781acec6b5ee1bded24e2f087d4e03ef0e2518de8b3cef4b10a0c0

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 fd0f3a4292b76b2ebaafb528ed136915bb43085c7828be64d36172d7d704bdbf
MD5 2c23fb6669903f10c7030cc926a659cd
BLAKE2b-256 fc3297defb96ed763051b2e5fae122baa0b5db8fab273519147df92f576dc3c5

See more details on using hashes here.

File details

Details for the file classixclustering-1.5.2-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for classixclustering-1.5.2-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f305a57550ab2a84d6d1c69072613ce0a6d4e33bcf6ca0c6bf7450a63df7b469
MD5 5afcb21f8b1d3d36a476c75ef8000df3
BLAKE2b-256 1640abc1dce7d18ab20200f784630cab6b59c0e3052eea4664a256103bcb8470

See more details on using hashes here.

Release history Release notifications | RSS feed

1.5.3

35 files

This release

1.5.2 This release

11 files

1.5.1

36 files

1.5.0

31 files

1.4.9

43 files

1.4.8

36 files

1.4.7

36 files

1.4.6

35 files

1.4.5

1 file

1.4.4

1 file

1.4.3

1 file

1.4.2

1 file

1.4.1

1 file

1.4.0

1 file

1.3.8

1 file

1.3.7

1 file

1.3.6

1 file

1.3.5

1 file

1.3.4

1 file

1.3.3

1 file

1.3.1

1 file

1.3.0

1 file

1.2.9

1 file

1.2.8

1 file

1.2.7

1 file

1.2.6

1 file

1.2.5

1 file

1.2.4

1 file

1.2.3

1 file

1.2.2

1 file

1.2.1

1 file

1.2.0

1 file

1.1.3

1 file

1.1.2

1 file

1.1.1

1 file

1.1.0

1 file

1.0.9

1 file

1.0.8

1 file

1.0.7

1 file

1.0.6

1 file

1.0.5

1 file

1.0.4

1 file

1.0.3

1 file

1.0.2

1 file

1.0.1

1 file

1.0.0

1 file

0.9.9

1 file

0.9.8

1 file

0.9.7

1 file

0.9.6

1 file

0.9.5

1 file

0.9.4

1 file

0.9.2

1 file

0.9.1

1 file

0.9.0

1 file

0.8.9

1 file

0.8.8

1 file

0.8.7

1 file

0.8.5

1 file

0.8.4

1 file

0.8.3

1 file

0.8.2

1 file

0.7.6

1 file

0.7.5

1 file

0.7.4

1 file

0.7.3

1 file

0.7.2

1 file

0.7.1

1 file

0.7.0

1 file

0.6.9

1 file

0.6.8

1 file

0.6.7

1 file

0.6.6

1 file

0.6.5

1 file

0.6.4

1 file

0.6.3

1 file

0.6.2

1 file

0.6.1

1 file

0.6.0

1 file

0.5.9

1 file

0.5.8

1 file

0.5.7

1 file

0.5.6

1 file

0.5.5

1 file

0.5.4

1 file

0.5.3

1 file

0.5.2

1 file

0.5.1

1 file

0.5.0

1 file

0.4.9

1 file

0.4.8

1 file

0.4.7

1 file

0.4.6

1 file

0.4.5

1 file

0.4.4

1 file

0.4.3

1 file

0.4.2

1 file

0.4.1

1 file

0.4.0

1 file

0.3.9

1 file

0.3.8

1 file

0.3.7

1 file

0.3.6

1 file

0.3.5

1 file

0.3.4

1 file

0.3.3

1 file

0.3.2

1 file

0.3.1

1 file

0.3.0

1 file

0.2.9

1 file

0.2.8

1 file

0.2.7

1 file

0.2.6

1 file

0.2.5

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.0

1 file

0.0.9

1 file

0.0.8

1 file

0.0.7

1 file

0.0.6

1 file

0.0.5

1 file

0.0.4

1 file

0.0.3

1 file

0.0.2

1 file

0.0.1

1 file

Supported by

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