Skip to main content

A benchmarking sandbox for mode choice models

Project description

Mode Choice Benchmarking Sandbox (MCBS)

A Python package for benchmarking discrete choice models for transportation mode choice analysis.

Installation

You can install MCBS using pip:

pip install mcbs

Quick Start

from mcbs.benchmarking import Benchmark
from mcbs.datasets import DatasetLoader

# Load a dataset
benchmark = Benchmark("swissmetro_dataset")

# Define your models
models = {
    "MNL - Base Model": your_model_function
}

# Run benchmark
results = benchmark.run(models)

# Compare results
benchmark.compare_results(results)

Features

  • Easy access to transportation mode choice datasets
  • Standardized benchmarking metrics
  • Support for Biogeme model estimation
  • Visualization of benchmark results

Datasets

Currently available datasets:

  • Swissmetro
  • London Transport
  • Mode Canada

Requirements

  • Python >=3.8
  • NumPy >=2.0.0
  • Pandas >=2.0.0
  • Biogeme >=3.2.14
  • Matplotlib >=3.0.0

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

We welcome contributions! Please see our contributing guidelines for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

mcbs-0.1.0-py3-none-any.whl (3.4 MB view details)

Uploaded Python 3

File details

Details for the file mcbs-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: mcbs-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.9

File hashes

Hashes for mcbs-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1bd2ed1ad5efd152c20869f1f07a2e1ea9b88721f940afda865959c58a34f600
MD5 9e11c81a34a306c075fb959e882529cf
BLAKE2b-256 687d532666d25a9f4a129d21a604713413f152ff84ccc3991cf6a8d31be0dd7e

See more details on using hashes here.

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