Fast-VAT: Accelerating Cluster Tendency Visualization using Cython and Numba

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Avinash, MSR, Lachheb, Ismael
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912496214867968
author Avinash, MSR
Lachheb, Ismael
author_facet Avinash, MSR
Lachheb, Ismael
contents Visual Assessment of Cluster Tendency (VAT) is a widely used unsupervised technique to assess the presence of cluster structure in unlabeled datasets. However, its standard implementation suffers from significant performance limitations due to its O(n^2) time complexity and inefficient memory usage. In this work, we present Fast-VAT, a high-performance reimplementation of the VAT algorithm in Python, augmented with Numba's Just-In-Time (JIT) compilation and Cython's static typing and low-level memory optimizations. Our approach achieves up to 50x speedup over the baseline implementation, while preserving the output fidelity of the original method. We validate Fast-VAT on a suite of real and synthetic datasets -- including Iris, Mall Customers, and Spotify subsets -- and verify cluster tendency using Hopkins statistics, PCA, and t-SNE. Additionally, we compare VAT's structural insights with clustering results from DBSCAN and K-Means to confirm its reliability.
format Preprint
id arxiv_https___arxiv_org_abs_2507_15904
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Fast-VAT: Accelerating Cluster Tendency Visualization using Cython and Numba
Avinash, MSR
Lachheb, Ismael
Machine Learning
Neural and Evolutionary Computing
I.5.3; D.2.8; G.4
Visual Assessment of Cluster Tendency (VAT) is a widely used unsupervised technique to assess the presence of cluster structure in unlabeled datasets. However, its standard implementation suffers from significant performance limitations due to its O(n^2) time complexity and inefficient memory usage. In this work, we present Fast-VAT, a high-performance reimplementation of the VAT algorithm in Python, augmented with Numba's Just-In-Time (JIT) compilation and Cython's static typing and low-level memory optimizations. Our approach achieves up to 50x speedup over the baseline implementation, while preserving the output fidelity of the original method. We validate Fast-VAT on a suite of real and synthetic datasets -- including Iris, Mall Customers, and Spotify subsets -- and verify cluster tendency using Hopkins statistics, PCA, and t-SNE. Additionally, we compare VAT's structural insights with clustering results from DBSCAN and K-Means to confirm its reliability.
title Fast-VAT: Accelerating Cluster Tendency Visualization using Cython and Numba
topic Machine Learning
Neural and Evolutionary Computing
I.5.3; D.2.8; G.4
url https://arxiv.org/abs/2507.15904