Skip to main content

Multi-Center Minimum Spanning Tree Clustering algorithm

Project description

Motivation

MCMSTClustering is a minimum-cost MST based clustering algorithm.
It uses MST distances and optional DBSCAN to detect clusters in high-dimensional data.

Installation

pip install MCMSTClustering

Usage

from mc_mst_clustering import MCMSTClustering, normalize
import numpy as np

# Generate random data
X = np.random.rand(10, 2)
X = normalize(X)

# Initialize and fit the clustering model
model = MCMSTClustering(min_samples=2)
model.fit(X)

# Predict cluster labels
labels = model.predict(X)
print(labels)

Oerview

MCMSTClustering (Defining Non-Spherical Clusters by using Minimum Spanning Tree over KD-Tree-based Micro-Clusters) is designed to overcome limitations of conventional clustering algorithms when handling:

- High-dimensional data

- Imbalanced datasets

- Clusters with varying densities

- Noisy data/outliers

- Arbitrary-shaped clusters

The algorithm consists of three main steps:

1. Micro-cluster Formation: Defines micro-clusters using a KD-Tree data structure with range search.

2. Macro-cluster Construction: Builds a minimum spanning tree (MST) over the micro-clusters to form macro-clusters.

3. Cluster Regulation: Refines the clusters to improve accuracy and overall clustering quality.

Extensive experiments against state-of-the-art algorithms show that MCMSTClustering achieves high-quality clustering results with acceptable runtime.

Key Features

- Clusters datasets with high quality

- Detects arbitrary-shaped clusters

- Robust against outliers/noisy data

- Handles clusters with varying densities

- Efficient on imbalanced datasets

Cite

If you use the code in your works, please cite the paper given below:

Şenol, A. MCMSTClustering: defining non-spherical clusters by using minimum 
spanning tree over KD-tree-based micro-clusters. Neural Comput & Applic 35, 
13239–13259 (2023). https://doi.org/10.1007/s00521-023-08386-3

BibTeX

@article{csenol2023mcmstclustering,
  title={MCMSTClustering: defining non-spherical clusters by using minimum spanning tree over KD-tree-based micro-clusters},
  author={{\c{S}}enol, Ali},
  journal={Neural Computing and Applications},
  volume={35},
  number={18},
  pages={13239--13259},
  year={2023},
  publisher={Springer}
}

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

mcmst_clust-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

mcmst_clust-1.0.0-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file mcmst_clust-1.0.0.tar.gz.

File metadata

  • Download URL: mcmst_clust-1.0.0.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mcmst_clust-1.0.0.tar.gz
Algorithm Hash digest
SHA256 bf6205b946e1bbdd3c61245dfa596217e7e6c3c8cccb2c24388fdb3a02f2e1cb
MD5 9f9ab79cf408868f5ca1006c1b81e9b4
BLAKE2b-256 c7dfe49ba937e4f1d6f28dfa34c69acd5c0c2c704f5fe2e04b8abcd490955a3b

See more details on using hashes here.

File details

Details for the file mcmst_clust-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: mcmst_clust-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for mcmst_clust-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a28b2e13a4cab7f52e397e53b5a350af6cf803f60049877f03e05d49419cc7f
MD5 2921e864f3456ae0a2b004c3dfce664e
BLAKE2b-256 a810289e7d4d9c845ee0fcdba92f111dd420b2313cff085816acfcc8d6802094

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