Skip to main content

High-performance discrete-choice (logit) travel demand model evaluation

Project description

Cheval (wsp-cheval)

Cheval is a Python package for high-performance evaluation of discrete-choice (logit) models. It's largely built upon the Pandas, NumPy, and NumExpr packages; along with some custom Numba code for performance-critical bottlenecks.

The name is an acronym for "CHoice EVALuator" but has a double-meaning as cheval is the French word for "horse" - and this package has a lot of horsepower! It has been designed for use in travel demand modelling, specifically microsimulated discrete choice models that need to process hundreds of thousands of records through a logit model. It also supports "stochastic" models, where the probabilities are the key outputs.

[!IMPORTANT] As of v0.3, this package is imported using wsp_cheval instead of cheval

Key features

Cheval contains two main components:

  • cheval.ChoiceModel which is the main entry point for discrete choice modelling
  • cheval.LinkedDataFrame which helps to simplify complex utility calculations.

These components can be used together or separately.

Cheval is compatible with Python 3.7+

Installation

Cheval can be installed with the following command:

``batch pip install wsp-cheval


### With `pip` directly from GitHub

Cheval can be installed directly from GitHub using `pip` by running the following command:

```batch
pip install git+https://github.com/wsp-sag/wsp-cheval.git

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

wsp_cheval-0.3.0.tar.gz (111.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wsp_cheval-0.3.0-py3-none-any.whl (41.7 kB view details)

Uploaded Python 3

File details

Details for the file wsp_cheval-0.3.0.tar.gz.

File metadata

  • Download URL: wsp_cheval-0.3.0.tar.gz
  • Upload date:
  • Size: 111.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wsp_cheval-0.3.0.tar.gz
Algorithm Hash digest
SHA256 38607d44c28b38794cae53b0a6ff750acaf9d5d048c161908a8c4d514128acaa
MD5 df060ea4a9eb2b687653f89817672a1a
BLAKE2b-256 592c7dfef54791a6854b8a1d8b9233ec159e5212c80efb1252174e54ca09d31b

See more details on using hashes here.

Provenance

The following attestation bundles were made for wsp_cheval-0.3.0.tar.gz:

Publisher: python-publish.yml on wsp-sag/wsp-cheval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wsp_cheval-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: wsp_cheval-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 41.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for wsp_cheval-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e10b01188d468fa36c0dd0095bee7c4393656c95146bde3e8ac707fd043e02bc
MD5 b5c9079cedc52c8faa34124e02168e13
BLAKE2b-256 be2ee2ee172bfac4f8a77eb92f5c59b20f85ffd275296262e706f502df816feb

See more details on using hashes here.

Provenance

The following attestation bundles were made for wsp_cheval-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on wsp-sag/wsp-cheval

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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