English

An Efficient $k$-modes Algorithm for Clustering Categorical Datasets

Methodology 2021-08-24 v3 Computer Vision and Pattern Recognition Applications Computation Machine Learning

Abstract

Mining clusters from data is an important endeavor in many applications. The kk-means method is a popular, efficient, and distribution-free approach for clustering numerical-valued data, but does not apply for categorical-valued observations. The kk-modes method addresses this lacuna by replacing the Euclidean with the Hamming distance and the means with the modes in the kk-means objective function. We provide a novel, computationally efficient implementation of kk-modes, called OTQT. We prove that OTQT finds updates to improve the objective function that are undetectable to existing kk-modes algorithms. Although slightly slower per iteration due to algorithmic complexity, OTQT is always more accurate per iteration and almost always faster (and only barely slower on some datasets) to the final optimum. Thus, we recommend OTQT as the preferred, default algorithm for kk-modes optimization.

Keywords

Cite

@article{arxiv.2006.03936,
  title  = {An Efficient $k$-modes Algorithm for Clustering Categorical Datasets},
  author = {Karin S. Dorman and Ranjan Maitra},
  journal= {arXiv preprint arXiv:2006.03936},
  year   = {2021}
}

Comments

16 pages, 10 figures, 5 tables

R2 v1 2026-06-23T16:06:54.521Z