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:

pip install wsp-cheval

With pip directly from GitHub

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

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.1.tar.gz (81.4 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.1-py3-none-any.whl (42.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wsp_cheval-0.3.1.tar.gz
Algorithm Hash digest
SHA256 a648e2e58a82948551df6dcf4bb09a3405484258912dff89380e78fd07f06bf5
MD5 ce309e5a15231d4ba21636a31fb8cda9
BLAKE2b-256 a4b1525a731151dfc6aa0cbf26bcadd097b8c885364c1c6d619776375a301a6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for wsp_cheval-0.3.1.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.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for wsp_cheval-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a744818e7da4cb128711963e393e2d20b477e1d4668d2142bbfc078cf13583fc
MD5 84bea1e0cc85b017e4f69d68f15fc4c5
BLAKE2b-256 a75b3e4ad32616f19ff7fa25e121a0412da9316083c9e18f62621d0c7271cd12

See more details on using hashes here.

Provenance

The following attestation bundles were made for wsp_cheval-0.3.1-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