We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

stat

Change to browse by:

References & Citations

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo ScienceWISE logo

Statistics > Machine Learning

Title: Regularized target encoding outperforms traditional methods in supervised machine learning with high cardinality features

Abstract: Since most machine learning (ML) algorithms are designed for numerical inputs, efficiently encoding categorical variables is a crucial aspect in data analysis. A common problem are high cardinality features, i.e. unordered categorical predictor variables with a high number of levels. We study techniques that yield numeric representations of categorical variables which can then be used in subsequent ML applications. We focus on the impact of these techniques on a subsequent algorithm's predictive performance, and -- if possible -- derive best practices on when to use which technique. We conducted a large-scale benchmark experiment, where we compared different encoding strategies together with five ML algorithms (lasso, random forest, gradient boosting, k-nearest neighbors, support vector machine) using datasets from regression, binary- and multiclass- classification settings. In our study, regularized versions of target encoding (i.e. using target predictions based on the feature levels in the training set as a new numerical feature) consistently provided the best results. Traditionally widely used encodings that make unreasonable assumptions to map levels to integers (e.g. integer encoding) or to reduce the number of levels (possibly based on target information, e.g. leaf encoding) before creating binary indicator variables (one-hot or dummy encoding) were not as effective in comparison.
Comments: Comput Stat (2022)
Subjects: Machine Learning (stat.ML); Machine Learning (cs.LG)
DOI: 10.1007/s00180-022-01207-6
Cite as: arXiv:2104.00629 [stat.ML]
  (or arXiv:2104.00629v2 [stat.ML] for this version)

Submission history

From: Florian Pargent [view email]
[v1] Thu, 1 Apr 2021 17:21:42 GMT (129kb,D)
[v2] Fri, 4 Mar 2022 12:21:15 GMT (126kb,D)

Link back to: arXiv, form interface, contact.