We present a meta-method for initializing (seeding) the -means clustering algorithm called PNN-smoothing. It consists in splitting a given dataset into random subsets, clustering each of them individually, and merging the resulting clusterings with the pairwise-nearest-neighbor (PNN) method. 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 and the number of clusters , PNN-smoothing is also almost linear with an appropriate choice of , 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 -means++ seeding proves superior in both effectiveness and speed compared to the popular ``greedy'' -means++ variant. Our implementation is publicly available at https://github.com/carlobaldassi/KMeansPNNSmoothing.jl.

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

Baldassi, Carlo
2023

Abstract

We present a meta-method for initializing (seeding) the -means clustering algorithm called PNN-smoothing. It consists in splitting a given dataset into random subsets, clustering each of them individually, and merging the resulting clusterings with the pairwise-nearest-neighbor (PNN) method. 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 and the number of clusters , PNN-smoothing is also almost linear with an appropriate choice of , 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 -means++ seeding proves superior in both effectiveness and speed compared to the popular ``greedy'' -means++ variant. Our implementation is publicly available at https://github.com/carlobaldassi/KMeansPNNSmoothing.jl.
2023
2022
Baldassi, Carlo
File in questo prodotto:
File Dimensione Formato  
pnnsmooth_kmeans-tmlr.pdf

accesso aperto

Descrizione: Main file
Tipologia: Pdf editoriale (Publisher's layout)
Licenza: Creative commons
Dimensione 1.25 MB
Formato Adobe PDF
1.25 MB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11565/4052065
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact