Entity Embeddings of Categorical Variables

Cheng Guo, Felix Berkhahn
4/22/2016
496 citations
cs.LG

Official code: entron/entity-embedding-rossmann (872 stars, Jupyter Notebook, last commit 2020-01-21).

Abstract

We map categorical variables in a function approximation problem into Euclidean spaces, which are the entity embeddings of the categorical variables. The mapping is learned by a neural network during the standard supervised training process.

Show full abstract

Entity embedding not only reduces memory usage and speeds up neural networks compared with one-hot encoding, but more importantly by mapping similar values close to each other in the embedding space it reveals the intrinsic properties of the categorical variables. We applied it successfully in a recent Kaggle competition and were able to reach the third position with relative simple features. We further demonstrate in this paper that entity embedding helps the neural network to generalize better when the data is sparse and statistics is unknown. Thus it is especially useful for datasets with lots of high cardinality features, where other methods tend to overfit. We also demonstrate that the embeddings obtained from the trained neural network boost the performance of all tested machine learning methods considerably when used as the input features instead. As entity embedding defines a distance measure for categorical variables it can be used for visualizing categorical data and for data clustering.

View on arXivView PDF

Code Implementations(1)

872319Jupyter Notebook, PythonDec 17, 20156 years ago
categorical-datacategorical-featuresentity-embeddingkaggleone-hot-encoding

Similar Papers

Cite this paper

@article{guo2016entity,
  title  = {Entity Embeddings of Categorical Variables},
  author = {Cheng Guo and Felix Berkhahn},
  year   = {2016},
  eprint = {1604.06737},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1604.06737}
}

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

Discussion