Skip to main content

Gradient Boosting Decision Trees for Random Utility Models

Project description


Documentation Status License: MIT Python Versions PyPI Version

Description

RUMBoost is a python package to estimate Random Utility models with Gradient Boosted Decision Trees. More specifically, each parameter in the traditional utility function is replaced by an ensemble of regression trees with appropriate constraints to: i) ensure the guarantee of marginal utilities monotonicity; ii) incorporate alternative-specific attributes; and iii) provide an intrinsically interpretable non-linear form of the utility function, directly learnt from the data.

Currently RUMBoost can estimate the following RUMs:

  • MNL
  • Nested Logit
  • Cross-Nested Logit
  • An equivalent of the Mixed Effect model

For more details, you can refer to the preprint of our paper.

Installation

RUMBoost is launched on pypi. You can install it with the following command:

pip install rumboost

We recommend to install rumboost in a separate environment with its dependencies.

Documentation and example

The full documentation can be found here. In addition, you can find several examples on how to use RUMBoost under the example folder. Currently, there are seven example notebooks. We recommend using them in this order:

  1. simple_rumboost: how to train and plot parameters of a simple RUMBoost model
  2. feature_interaction: how to include feature interactions for training and plotting
  3. nested: how to train a nested logit RUMBoost model
  4. functional_effect: how to train and plot a functional effect RUMBoost model
  5. cross-nested: how to train a cross-nested logit RUMBoost model
  6. bootstrap: how to test the model robustness
  7. smoothing_and_vot: how to smooth a RUMBoost output and plot the smoothed version, as well as computing and plotting VoT

Bug reports and feature requests

If you encounter any issues or have ideas for new features, please open an issue. You can also contact us at nicolas.salvade.22@ucl.ac.uk

License

This project is licensed under the MIT License - see the LICENSE file for details.

Reference paper (preprint)

Salvadé, Nicolas and Hillel, Tim, Rumboost: Gradient Boosted Random Utility Models. Available at SSRN: https://ssrn.com/abstract=4701222 or http://dx.doi.org/10.2139/ssrn.4701222

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rumboost-1.0.2.tar.gz (56.7 kB view details)

Uploaded Source

Built Distribution

rumboost-1.0.2-py3-none-any.whl (57.4 kB view details)

Uploaded Python 3

File details

Details for the file rumboost-1.0.2.tar.gz.

File metadata

  • Download URL: rumboost-1.0.2.tar.gz
  • Upload date:
  • Size: 56.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rumboost-1.0.2.tar.gz
Algorithm Hash digest
SHA256 d154d83c20dcc966d24624535a5ef99e062f0b8b164857b8a16cfc479fc6782c
MD5 0a28ade77e0634a1180b2ffa9003fae5
BLAKE2b-256 138370bec1254c6bfeb93f1e48334690c0988b96a691938a16c3a23c61909a6c

See more details on using hashes here.

File details

Details for the file rumboost-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: rumboost-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 57.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for rumboost-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2d30d606529ccea8efd52e474d359cc050ffe9fbd0256c7a3d5f350df8d01ccb
MD5 4f646eb41dbf89ca7e606d41fe26ecad
BLAKE2b-256 f22a89d970ac5c3429335ae34000c7850a3e9f7f08f3756150821b6155aa3e4a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page