Clustering by Direct Optimization of the Medoid Silhouette

Lars Lenssen, Erich Schubert
9/26/2022
17 citations
cs.LGstat.ML

Official code: kno10/python-kmedoids (95 stars, Python, GPL-3.0, last commit 2025-11-04). 1 more implementation below.

Abstract

The evaluation of clustering results is difficult, highly dependent on the evaluated data set and the perspective of the beholder. There are many different clustering quality measures, which try to provide a general measure to validate clustering results.

Show full abstract

A very popular measure is the Silhouette. We discuss the efficient medoid-based variant of the Silhouette, perform a theoretical analysis of its properties, and provide two fast versions for the direct optimization. We combine ideas from the original Silhouette with the well-known PAM algorithm and its latest improvements FasterPAM. One of the versions guarantees equal results to the original variant and provides a run speedup of $O(k^2)$. In experiments on real data with 30000 samples and $k$=100, we observed a 10464$\times$ speedup compared to the original PAMMEDSIL algorithm.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
kno10/python-kmedoidsOfficial95PythonGPL-3.02025-11-04
kno10/rust-kmedoidsOfficial30RustGPL-3.02025-09-17
GPL-3.0

Fast K-Medoids clustering in Python with FasterPAM

957Python, RustJan 31, 20211 years agoGPL-3.0
RustGPL-3.0

k-Medoids clustering in Rust with the FasterPAM algorithm

307RustDec 22, 20201 years agoGPL-3.0

Similar Papers

Cite this paper

@article{lenssen2022clustering,
  title  = {Clustering by Direct Optimization of the Medoid Silhouette},
  author = {Lars Lenssen and Erich Schubert},
  year   = {2022},
  eprint = {2209.12553},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.12553}
}

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/2209.12553.svg)](https://codeofpaper.com/paper/2209.12553)

Discussion