EconBase
← All papers

Torch-Choice: A PyTorch Package for Large-Scale Choice Modeling with Python

Tianyu Du, Ayush Kanodia, Susan Athey

arXiv 4 Apr 2023 · Machine Learning · 3 citations (OpenAlex)

arXiv:2304.01906 · PDF · DOI · OpenAlex · Extracted main text

Abstract

The $torch-choice$ is an open-source library for flexible, fast choice modeling with Python and PyTorch. $torch-choice$ provides a $ChoiceDataset$ data structure to manage databases flexibly and memory-efficiently. The paper demonstrates constructing a $ChoiceDataset$ from databases of various formats and functionalities of $ChoiceDataset$. 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 $torch-choice$ and $mlogit$ 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 $torch-choice$ on large-scale datasets.

Citation extraction

3
references
4
in-text mentions
3
distinct cited
0
self-citations
18,246
main-text words

appendix boundary found by none_found · 100% of the source is main text. Read the extracted text to check this.

Most heavily cited references

The works this paper leans on most, across its whole bibliography — not restricted to papers in our corpus. Ranked by composite intensity, which combines how often a work is mentioned, how many sections mention it, and how much of that falls in the main text rather than the appendix.

ReferenceIntensityMentionsSectionsMain text
1Yves Croissant (2020) Estimation of random utility models in r: The mlogit package0.64422100%
2Cristian Arteaga, JeeWoong Park, Prithvi Bhat Beeramoole, and Alexan… (2022) xlogit: An open-source python package for gpu-accelerated estimation of mixed logit models0.40511100%
3Chandra R Bhat (1995) A heteroscedastic extreme value model of intercity travel mode choice0.40511100%

Showing the top 3 of 3 scored citations.