ANDClust: Adaptive Neighborhood Density-Based Clustering Algorithm
Project description
ANDClust
ANDClust is a clustering algorithm based on Adaptive Neighborhood Density and MST expansion with local density ratios.
This package implements the final optimized version of the ANDClust algorithm.
Installation
pip install andclust
Usage
from andclust import ANDClust
from sklearn.datasets import load_iris
from sklearn.preprocessing import MinMaxScaler
from sklearn.metrics.cluster import adjusted_rand_score
data=load_iris()
X,y=data['data'],data['target']
scaler = MinMaxScaler()
scaler.fit(X)
X = scaler.transform(X)
model = ANDClust(N=2,k=14,eps=0.113) # If you want to change kernel and band_with use model = ANDClust(N=2,k=14,eps=0.113,kernel='gaussian',b_width=0.025) default values for optional parameter krnl='gaussian', b_width=0.5 options for kernel are{“gaussian”, “tophat”, “epanechnikov”,
“exponential”, “linear”, “cosine”}
labels = model.fit_predict(X)
ARI=adjusted_rand_score(labels,y)
print("ARI=", ARI)
model.plotGraph("ARI",ARI,dataset_name)
Features
Adaptive neighborhood density (AND)
Kernel Density Estimation–based cluster core detection
MST expansion using local ratio constraints
Noise handling
High performance (KDTree + vectorized operations)
##Citation
If you use this algorithm in research, please cite the corresponding paper.
Şenol, A. (2024). ANDClust: An Adaptive Neighborhood Distance-Based Clustering Algorithm to Cluster Varying Density and/or Neck-Typed Datasets. Advanced Theory and Simulations, 7(4), 2301113.
#BibTeX
@article{csenol2024andclust,
title={ANDClust: An Adaptive Neighborhood Distance-Based Clustering Algorithm to Cluster Varying Density and/or Neck-Typed Datasets},
author={{\c{S}}enol, Ali},
journal={Advanced Theory and Simulations},
volume={7},
number={4},
pages={2301113},
year={2024},
publisher={Wiley Online Library}
}
LICENSE **
MIT License
Copyright (c) 2025 Ali Şenol
Permission is hereby granted, free of charge, to any person obtaining a copy
...
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file andclust-1.0.0.tar.gz.
File metadata
- Download URL: andclust-1.0.0.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
89cf485631be840e8e2a7f82e86cb878fa949ac470f544503ae2890b90f6b333
|
|
| MD5 |
230be465e1c27f8b6350f8c9a13ce94f
|
|
| BLAKE2b-256 |
4485be9224c4117ea7d936a42f40beec1d9949d580ab5c38cf19f122af28b9c7
|
File details
Details for the file andclust-1.0.0-py3-none-any.whl.
File metadata
- Download URL: andclust-1.0.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f35930fb0aec8d2293bf266aeed88cc7e3d190328b9242b5806ddc7b191d46c1
|
|
| MD5 |
51206a1ea0bf081f7ba91d9a3e7be3ad
|
|
| BLAKE2b-256 |
f31a65c49730358e028971b2c59d5f1c3b8fcac22810a5082c24a493c1bf6ce1
|