Skip to main content

VIASCKDE: internal cluster validity index (KDE-weighted compactness & separation)

Project description

VIASCKDE Index

VIASCKDE is a novel internal cluster validity index for arbitrary-shaped clusters based on Kernel Density Estimation (KDE).


Motivation

The VIASCKDE Index was proposed in:

"VIASCKDE Index: A Novel Internal Cluster Validity Index for Arbitrary Shaped Clusters Based on Kernel Density Estimation"
by Ali Şenol

The index evaluates clustering quality regardless of cluster shape by computing compactness and separation at the point level instead of relying on cluster centroids. This makes it robust for non-spherical and arbitrarily shaped clusters.


Installation

pip install viasckde

Usage

from viasckde import viasckde_score


score = viasckde_score(X, labels)
print("VIASCKDE Score:", score)

VIASCKDE index needs four parameters (two are optional) that are:
    # X: your data array (NumPy-like)
	# labels: predicted cluster labels
    # kernel (optional): selected kernel method, krnl='gaussian' is default kernel. But it could be 'tophat', 'epanechnikov', 'exponential', 'linear', or 'cosine'.
    # bandwidth(optional): the bandwidth value of kernel density estimation. b_width=0.05 is the default value. But it could be changed.

Concept

In non-spherical clusters, the distance from a point to the nearest neighbor in the same cluster is often more meaningful than the distance to the cluster centroid.
VIASCKDE computes:

Compactness: distance to the closest point in the same cluster

Separation: distance to the closest point in a different cluster

This point-level computation ensures realistic evaluation of clusters regardless of their shape.

Concept figure

Output Range

VIASCKDE returns a score in [-1, +1]:

+1: best clustering

-1: worst clustering

Citation

Ali Şenol, "VIASCKDE Index: A Novel Internal Cluster Validity Index for Arbitrary-Shaped Clusters Based on the Kernel Density Estimation", Computational Intelligence and Neuroscience, vol. 2022, Article ID 4059302, 20 pages, 2022.
https://doi.org/10.1155/2022/4059302

BibTeX

@article{csenol2022viasckde,
  title={VIASCKDE Index: A Novel Internal Cluster Validity Index for Arbitrary-Shaped Clusters Based on the Kernel Density Estimation},
  author={{\c{S}}enol, Ali},
  journal={Computational Intelligence and Neuroscience},
  volume={2022},
  number={1},
  pages={4059302},
  year={2022},
  publisher={Wiley Online Library}
}

License & Author

Author: Assoc. Prof. Dr. Ali Şenol
Computer Engineering Department, Tarsus University

License: MIT

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

viasckde-0.1.5.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

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

viasckde-0.1.5-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file viasckde-0.1.5.tar.gz.

File metadata

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

File hashes

Hashes for viasckde-0.1.5.tar.gz
Algorithm Hash digest
SHA256 cbe2c7519f6789feb4c0b95b5c1e8dce8cef8a4d2bc7cad0c50666634e20b32d
MD5 61e0f6a34bc676bb878d291c9f230f19
BLAKE2b-256 8e5800d24332abd214d92885c3bff7c5561b1f43c282fcf3f9dd117c1d81603a

See more details on using hashes here.

File details

Details for the file viasckde-0.1.5-py3-none-any.whl.

File metadata

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

File hashes

Hashes for viasckde-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0c77e2fcdf77d1a1f1f625e9c5bd16ec026cf227b154ebe3841125af94aaeb5b
MD5 eab4894cfd84af8a7619b507bbb5a8f4
BLAKE2b-256 ba779ca8311ec42c352378bbad03dec2fd574fe2998b6ca6a1c3127883cf24f3

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