Skip to main content

Python Tensor based package for discrete choice modelling.

Project description

PyCMTensor

Licence PyPI version codecov Downloads DOI

Tensor-based choice modelling estimation Python package

Welcome

PyCMTensor is a tensor-optimized discrete choice model estimation Python library package, written with optimization compilers to speed up estimation of large datasets, simulating very large mixed logit models or implementing neural network functions into utility equations in choice models.

Currently, PyCMTensor can be used to fully specify Multinomial Logit and Mixed Logit models, estimate and generate statistical tests, using optimized tensor operations via Aesara tensor libraries.

Key features

Main features:

  • Interpretable and customizable utility specification syntax
  • Perform statistical tests and generate var-covar matrices for taste parameters.
  • Fast execution of model estimation including of simulation based methods, e.g. Mixed Logit models
  • Model estimation with 1st order (Stochastic Gradient Descent) or 2nd order methods (BFGS)
  • Specifying neural nets with weight and bias parameters inside a utility function [TODO]

While other choice modelling estimation software in Python are available, e.g. Biogeme, xlogit, PyLogit, etc., PyCMTensor strives to fully implement deep learning based methods written in the same syntax format as Biogeme. Different software programs may occasionally vary in their behaviour and estimation results. The following are some of the key differences between PyCMTensor and other choice modelling estimation packages:

Documentation

See documentation at https://mwong009.github.io/pycmtensor/

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

pycmtensor-1.6.0.tar.gz (32.4 kB view details)

Uploaded Source

Built Distribution

pycmtensor-1.6.0-py3-none-any.whl (37.0 kB view details)

Uploaded Python 3

File details

Details for the file pycmtensor-1.6.0.tar.gz.

File metadata

  • Download URL: pycmtensor-1.6.0.tar.gz
  • Upload date:
  • Size: 32.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure

File hashes

Hashes for pycmtensor-1.6.0.tar.gz
Algorithm Hash digest
SHA256 f3705cdbf3a8834a2a8ecdbe4324ff5b14f1045a0626d26ca9fcade93ca01270
MD5 98a07ed50fececfc60bd232b47a64bdc
BLAKE2b-256 093bb85febc0ce5c2695df72ed143d7c8d67ebf08a6ce6adb878157abe873e48

See more details on using hashes here.

Provenance

File details

Details for the file pycmtensor-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: pycmtensor-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 37.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.11.4 Linux/5.15.0-1042-azure

File hashes

Hashes for pycmtensor-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b546db09995f7211b8a06e600cb08bb4c33d66f6e4096f241b67c1ca4a2c841
MD5 e5949fca2bdd7e38b8c174edded36944
BLAKE2b-256 a1fb9b32cff81ee1635d8c62e8c86dd593112b4ba292d52c2a9f0a09020de4e5

See more details on using hashes here.

Provenance

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