paper-with-me

Papers

Encoding high-cardinality string categorical variables

2019-07-03 · Patricio Cerda, Gaël Varoquaux

Statistical models usually require vector representations of categorical variables, using for instance one-hot encoding. This strategy breaks down when the number of categories grows, as it creates high-dimensional feature vectors. Additionally, for string entries, one-hot encoding does not capture information in their representation.Here, we seek low-dimensional encoding of high-cardinality string categorical variables. Ideally, these should be: scalable to many categories; interpretable to end users; and facilitate statistical analysis. We introduce two encoding approaches for string categories: a Gamma-Poisson matrix factorization on substring counts, and the min-hash encoder, for fast approximation of string similarities. We show that min-hash turns set inclusions into inequality relations that are easier to learn. Both approaches are scalable and streamable. Experiments on real and simulated data show that these methods improve supervised learning with high-cardinality categorical variables. We recommend the following: if scalability is central, the min-hash encoder is the best option as it does not require any data fit; if interpretability is important, the Gamma-Poisson factorization is the best alternative, as it can be interpreted as one-hot encoding on inferred categories with informative feature names. Both models enable autoML on the original string entries as they remove the need for feature engineering or data cleaning.

📄 PDF Abstract BibTeX arXiv:1907.01860

Code (1)

pcerda/string_categorical_encoders 공식 구현

Tasks

AutoMLFeature EngineeringVocal Bursts Intensity Prediction

Methods 이 논문이 사용한 방법론

Interpretability 설명 없음

Similar Papers 제목 키워드 기반

Similarity encoding for learning with dirty categorical variables

2018-06-04 · Patricio Cerda, Gaël Varoquaux, Balázs Kégl

For statistical learning, categorical variables in a table are usually considered as discrete entities and encoded separately to feature vectors, e.g., with one-hot encoding. "Dirty" non-curated data gives rise to catego…

Dimensionality Reduction

Efficient Representations for High-Cardinality Categorical Variables in Machine Learning

2025-01-10 · Zixuan Liang

High\-cardinality categorical variables pose significant challenges in machine learning, particularly in terms of computational efficiency and model interpretability. Traditional one\-hot encoding often results in high\-…

Computational Efficiency

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

2021-04-01 · Florian Pargent, Florian Pfisterer, Janek Thomas, Bernd Bischl

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. unorder…

BIG-bench Machine Learning

Machine Learning with High-Cardinality Categorical Features in Actuarial Applications

2023-01-30 · Benjamin Avanzi, Greg Taylor, Melantha Wang, Bernard Wong

High-cardinality categorical features are pervasive in actuarial data (e.g. occupation in commercial property insurance). Standard categorical encoding methods like one-hot encoding are inadequate in these settings. In t…

Vocal Bursts Intensity Prediction

Using Random Effects to Account for High-Cardinality Categorical Features and Repeated Measures in Deep Neural Networks

2021-12-01 · NeurIPS 2021 12 · Giora Simchoni, Saharon Rosset

High-cardinality categorical features are a major challenge for machine learning methods in general and for deep learning in particular. Existing solutions such as one-hot encoding and entity embeddings can be hard to sc…

Entity Embeddings