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_chevalinstead ofcheval
Key features
Cheval contains two main components:
cheval.ChoiceModelwhich is the main entry point for discrete choice modellingcheval.LinkedDataFramewhich 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c5eda76a7140a68c05c3c75f7188278ac1013e56343bde3766fba7586a7c2ca
|
|
| MD5 |
bc7443a187625c26cd51ad23fef6fe3b
|
|
| BLAKE2b-256 |
2b1f98fc677d6c23466a7fe3b6580067c86ab35272e253418e694586a16b7c2f
|
Provenance
The following attestation bundles were made for wsp_cheval-0.3.2.tar.gz:
Publisher:
python-publish.yml on wsp-sag/wsp-cheval
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wsp_cheval-0.3.2.tar.gz -
Subject digest:
2c5eda76a7140a68c05c3c75f7188278ac1013e56343bde3766fba7586a7c2ca - Sigstore transparency entry: 1520373296
- Sigstore integration time:
-
Permalink:
wsp-sag/wsp-cheval@c1bbe45c7a848a55f162f2b5f3a878f7cf9d5727 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/wsp-sag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c1bbe45c7a848a55f162f2b5f3a878f7cf9d5727 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0965607789e08edba3c25380242222f4aa2ef623e5eb7fc0f66669d6c84a70e
|
|
| MD5 |
81ab7804766037b2adba62fb3f603747
|
|
| BLAKE2b-256 |
b960057338ef3f272daea888337840cb770d16e6f53f50ad621bf758665cfb6c
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wsp_cheval-0.3.2-py3-none-any.whl -
Subject digest:
e0965607789e08edba3c25380242222f4aa2ef623e5eb7fc0f66669d6c84a70e - Sigstore transparency entry: 1520373320
- Sigstore integration time:
-
Permalink:
wsp-sag/wsp-cheval@c1bbe45c7a848a55f162f2b5f3a878f7cf9d5727 -
Branch / Tag:
refs/tags/v0.3.2 - Owner: https://github.com/wsp-sag
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@c1bbe45c7a848a55f162f2b5f3a878f7cf9d5727 -
Trigger Event:
release
-
Statement type: