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
benchmark = Benchmark("swissmetro_dataset")
models = {
"MNL - Base Model": your_model_function
}
results = benchmark.run(models)
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.