Fast and Memory-Light Evaluation of Density-Based Clusterings with the DISCO Index in R
Abstract
DISCO is a recent internal cluster validity index for density-based clustering that, unlike earlier indices, also evaluates the quality of noise labels. The discoCVI package makes DISCO available in R. This article describes the design of the package and a typical workflow, in which DISCO is used to compare clusterings and to choose the parameters of HDBSCAN without ground truth, followed by the implementation introduced in version 0.2.0. DISCO is defined through density-connectivity distances between all pairs of points, so direct implementations store several n-by-n matrices. We show that every quantity DISCO needs can be read off the single-linkage merge tree of the mutual-reachability minimum spanning tree, so that the index can be computed exactly with memory that grows linearly with the number of points, while the running time remains quadratic as in the original definition. The implementation is tested against the previous version, agrees with the original Python implementation to within , and corrects the score of singleton clusters to match the published definition. In benchmarks, discoCVI is 23 to 138 times faster than its previous version for 500 to 4,000 points and 3 to 9 times faster than the Python reference for 500 to 8,000 points, using a fraction of the memory of both, and it scores 100,000 points in about 50 seconds with less than 200 MB of memory.
Create a lesson
Metadata
- Categories
- cs.LG, stat.CO
- Comments
- 12 pages, 4 figures. R package discoCVI available on CRAN
Related papers
How Multi-Timescale Memory Cools Optimization: Theory and Evidence from AdEMAMix
Shared title terminologycs.LGJacopo Graldi, Antonio Orvieto, Anastasia Koloskova
CoHABIT: Complementary Evaluation of Furniture Layouts through Spatial Rules and Household Routines
Shared title terminologycs.LGEwsey Obzherin, Samira Atlangirieva, Anastasia Antsiferova et al.
CLAIR: Consistent LLM Adaptation via Index-free Reprogramming
Shared title terminologycs.LGDongkuk Kim, Jungkyu Shin, Yoonhyuk Choi et al.
DRAM: Memory-Efficient Muon via Rank Reallocation in Principal-Random Subspaces
Shared title terminologycs.LGHaomin Bai, Dingzhi Yu, Xuling Zhao et al.
State of Mind: Learning and Evaluating World Models of Naturalistic Brain Dynamics
Shared title terminologycs.LGYuxiang Wei, Zundong Wu, Weiyu Sun et al.
HiPPO Functional Memory: Coordinate-Queryable Attention for Irregular Time Series
Shared title terminologycs.LGZhaodong Guo, Haoyun Feng