Systematically and efficiently improving k-means initialization by pairwise-nearest-neighbor smoothing

Carlo Baldassi
2/8/2022
cs.LGstat.ML

No official code found. Best implementation: carlobaldassi/KMeansPNNSmoothing.jl (9 stars, Julia, last commit 2024-10-03).

Abstract

We present a meta-method for initializing (seeding) the $k$-means clustering algorithm called PNN-smoothing. It consists in splitting a given dataset into $J$ random subsets, clustering each of them individually, and merging the resulting clusterings with the pairwise-nearest-neighbor (PNN) method.

Show full abstract

It is a meta-method in the sense that when clustering the individual subsets any seeding algorithm can be used. If the computational complexity of that seeding algorithm is linear in the size of the data $N$ and the number of clusters $k$, PNN-smoothing is also almost linear with an appropriate choice of $J$, and quite competitive in practice. We show empirically, using several existing seeding methods and testing on several synthetic and real datasets, that this procedure results in systematically better costs. In particular, our method of enhancing $k$-means++ seeding proves superior in both effectiveness and speed compared to the popular "greedy" $k$-means++ variant. Our implementation is publicly available at https://github.com/carlobaldassi/KMeansPNNSmoothing.jl.

View on arXivView PDF

Code Implementations(1)

91JuliaFeb 8, 20222 years ago

Similar Papers

Cite this paper

@article{baldassi2022systematically,
  title  = {Systematically and efficiently improving k-means initialization by pairwise-nearest-neighbor smoothing},
  author = {Carlo Baldassi},
  year   = {2022},
  eprint = {2202.03949},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.03949}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.03949.svg)](https://codeofpaper.com/paper/2202.03949)

Discussion