Breathing K-Means: Superior K-Means Solutions through Dynamic K-Values

Bernd Fritzke
6/28/2020
4 citations
cs.LGstat.ML

Official code: gittar/breathing-k-means (94 stars, Jupyter Notebook, MIT, last commit 2024-12-28).

Abstract

We introduce the breathing k-means algorithm, which on average significantly improves solutions obtained by the widely-known greedy k-means++ algorithm, the default method for k-means clustering in the scikit-learn package. The improvements are achieved through a novel ``breathing'' technique, that cyclically increases and decreases the number of centroids based on local error and utility measures.

Show full abstract

We conducted experiments using greedy k-means++ as a baseline, comparing it with breathing k-means and five other k-means algorithms. Among the methods investigated, only breathing k-means and better k-means++ consistently outperformed the baseline, with breathing k-means demonstrating a substantial lead. This superior performance was maintained even when comparing the best result of ten runs for all other algorithms to a single run of breathing k-means, highlighting its effectiveness and speed. Our findings indicate that the breathing k-means algorithm outperforms the other k-means techniques, especially greedy k-means++ with ten repetitions, which it dominates in both solution quality and speed. This positions breathing k-means (with the built-in initialization by a single run of greedy k-means++) as a superior alternative to running greedy k-means++ on its own.

View on arXivView PDF

Code Implementations(1)

MIT

The "breathing k-means" algorithm with datasets and example notebooks

948Jupyter Notebook, HTMLJun 27, 20201 years agoMIT
jupyter-notebookk-meanspython

Similar Papers

Cite this paper

@article{fritzke2020breathing,
  title  = {Breathing K-Means: Superior K-Means Solutions through Dynamic K-Values},
  author = {Bernd Fritzke},
  year   = {2020},
  eprint = {2006.15666},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2006.15666}
}

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

Discussion