Skip to main content

A robust and efficient Python package leveraging tensor computations for advanced discrete choice modelling.

Project description

PyCMTensor

Licence PyPI version codecov Downloads DOI

PyCMTensor: Advanced Tensor-based Choice Modelling in Python

Welcome to PyCMTensor, a Python library for tensor-based discrete choice modelling estimation. This package is designed with a focus on hybrid neural networks and Logit models, including Mixed Logit models. PyCMTensor models leverage computational graphs and are estimated using generalized backpropagation algorithms.

With PyCMTensor, you can fully specify Multinomial Logit and Mixed Logit models, perform model estimation using computational graphs, and generate statistical test results for econometric analysis.

Key Features

  • Interpretable and customizable utility specification syntaxes: Easily define your models with an intuitive syntax.
  • Neural network specification: Specify neural networks with weight and bias parameters inside utility functions (e.g., TasteNet).
  • Comprehensive analysis tools: Perform specification testing, analyze covariances, and compute standard errors for taste parameters.
  • Fast model estimation: Quickly estimate models, including simulation-based methods like Mixed Logit models, using a computational graph approach.
  • Flexible optimization methods: Tune the model estimation with 1st order methods (e.g., Adam, Stochastic Gradient Descent) or 1.5th order methods (e.g., Stochastic BFGS).

While other choice modelling estimation software in Python are available, such as Biogeme, xlogit, and PyLogit, PyCMTensor sets itself apart by fully implementing deep learning-based methods with a simplified syntax for utility equation specification.

Documentation

For more information on how to use PyCMTensor, please refer to our documentation.

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.9.1.tar.gz (36.6 kB view hashes)

Uploaded Source

Built Distribution

pycmtensor-1.9.1-py3-none-any.whl (42.8 kB view hashes)

Uploaded Python 3

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