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.2.tar.gz (58.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.2-py3-none-any.whl (42.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wsp_cheval-0.3.2.tar.gz
Algorithm Hash digest
SHA256 2c5eda76a7140a68c05c3c75f7188278ac1013e56343bde3766fba7586a7c2ca
MD5 bc7443a187625c26cd51ad23fef6fe3b
BLAKE2b-256 2b1f98fc677d6c23466a7fe3b6580067c86ab35272e253418e694586a16b7c2f

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for wsp_cheval-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e0965607789e08edba3c25380242222f4aa2ef623e5eb7fc0f66669d6c84a70e
MD5 81ab7804766037b2adba62fb3f603747
BLAKE2b-256 b960057338ef3f272daea888337840cb770d16e6f53f50ad621bf758665cfb6c

See more details on using hashes here.

Provenance

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