A K-Means, Ward and DBSCAN repeatability study

Anthony Bertrand, Engelbert Mephu Nguifo, Violaine Antoine, David Hill
12/22/2025
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Reproducibility is essential in machine learning because it ensures that a model or experiment yields the same scientific conclusion. For specific algorithms repeatability with bitwise identical results is also a key for scientific integrity because it allows debugging. We decomposed several very popular clustering algorithms: K-Means, DBSCAN and Ward into their fundamental steps, and we identify the conditions required to achieve repeatability at each stage. We use an implementation example with the Python library scikit-learn to examine the repeatable aspects of each method. Our results reveal inconsistent results with K-Means when the number of OpenMP threads exceeds two. This work aims to raise awareness of this issue among both users and developers, encouraging further investigation and potential fixes.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{bertrand2025kmeans,
  title  = {A K-Means, Ward and DBSCAN repeatability study},
  author = {Anthony Bertrand and Engelbert Mephu Nguifo and Violaine Antoine and David Hill},
  year   = {2025},
  eprint = {2512.19772},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.19772v1}
}

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

Discussion