Report/Preprint
Cite …

A benchmark of categorical encoders for binary classification

Federico Matteucci, Vadim Arzamasov 1 and Klemens Boehm 2
1 Institute of Theoretical Informatics (ITI), Karlsruhe Institute of Technology (KIT)
2 Institute for Program Structures and Data Organisation (IPD), Karlsruhe Institute of Technology (KIT)
DOI: 10.5445/IR/1000176781
PDF published on Dec 19, 2024
CC BY-SA 4.0
Abstract

Categorical encoders transform categorical features into numerical representations that are indispensable for a wide range of machine learning models. Existing encoder benchmark studies lack generalizability because of their limited choice of (1) encoders, (2) experimental factors, and (3) datasets. Additionally, inconsistencies arise from the adoption of varying aggregation strategies. This paper is the most comprehensive benchmark of categorical encoders to date, including an extensive evaluation of 32 configurations of encoders from diverse families, with 36 combinations of experimental factors, and on 50 datasets. The study shows the profound influence of dataset selection, experimental factors, and aggregation strategies on the benchmark's conclusions -- aspects disregarded in previous encoder benchmarks.