Categorical Embeddings for Tabular Data using PyTorch

Sanskruti Khedkar,Shilpa Lambor,Yogita Narule,Prathamesh Berad,A.C. Sumathi,N. Yuvaraj,N.H. Ghazali
DOI: https://doi.org/10.1051/itmconf/20235602002
2023-08-10
ITM Web of Conferences
Abstract:Deep learning has received much attention for computer vision and natural language processing, but less for tabular data, which is the most prevalent type of data used in industry. Embeddings offer a solution by representing categorical variables as continuous vectors in lowdimensional space. PyTorch provides excellent support for GPU acceleration and pre-built functions and modules, making it easier to work with embeddings and categorical variables. In this research paper, we apply a feedforward neural network model in PyTorch to a multiclass classification problem using the Shelter Animal Outcome dataset. We calculate the probability of an animal's outcome belonging to each of the 5 categories. Additionally, we explore feature importance using two common techniques: MDI and permutation. Understanding feature importance is crucial for building better models, improving performance, and interpreting and communicating results. Our findings demonstrate the usefulness of embeddings and PyTorch for deep learning with tabular data and highlight the importance of feature selection for building effective machine learning models.
What problem does this paper attempt to address?