Torch-Choice: A PyTorch Package for Large-Scale Choice Modeling with Python
Not on the map. Why?
Abstract (arXiv)
The texttttorch-choice is an open-source library for flexible, fast choice modeling with Python and PyTorch. texttttorch-choice provides a textttChoiceDataset data structure to manage databases flexibly and memory-efficiently. The paper demonstrates constructing a textttChoiceDataset from databases of various formats and functionalities of textttChoiceDataset. The package implements two widely used models, namely the multinomial logit and nested logit models, and supports regularization during model estimation. The package incorporates the option to take advantage of GPUs for estimation, allowing it to scale to massive datasets while being computationally efficient. Models can be initialized using either R-style formula strings or Python dictionaries. We conclude with a comparison of the computational efficiencies of texttttorch-choice and textttmlogit in R as (1) the number of observations increases, (2) the number of covariates increases, and (3) the expansion of item sets. Finally, we demonstrate the scalability of texttttorch-choice on large-scale datasets.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 5 of its 48 references that are in the map. First posted on arXiv 4 Apr 2023.
Builds on
5 of 48 references.
References · 5
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2017SHOPPER: A Probabilistic Model of Consumer Choice with Substitutes and Complementscited by 13
- 2017Structured Embedding Models for Grouped Datacited by 6
- 2019Counterfactual Inference for Consumer Choice Across Many Product Categoriescited by 6
- 2018Estimating Heterogeneous Consumer Preferences for Restaurants and Travel Time Using Mobile Location Datacited by 3
Built on by
Not cited yet.