logit.py
script to estimate the logit type model
mixedlogit.py
script to estimate the mixed logit type model
network.py
core functionality
optimizers.py
gradient descent optimizers
compile.py
script for generating the dataset
main.py
main script for estimating the CRBM model
utility.py
various mathematical functions and tools
purpose = { 0: [null], 1: work, 2: education, 3: home, 4: errand, 5: health, 6: leisure, 7: shopping, 8: meals, 9: meeting }
mode = { 1: CYCLING, 2: DRIVING, 3: DRIVING + TRANSIT, 4: TRANSIT, 5: WALK, 6: OTHER }
The dataset is a small sample from the Mtl Trajet 2016 dataset
run python3 main.py
script to start the estimation to reproduce the results of the CRBM model
Python 3.5+ (with pip3), Numpy, Pandas, Theano
A requirements.txt
file is provided to install the required library packages through pip
- clone or download the git project repository, and in the project folder run the following to install the reuqirements
The following system packages are required to be installed
apt-get install python3 python3-dev pip3
python3 --version
>>> Python 3.X.X
Install requirements with pip with --user option
cd project-root-folder/
pip3 install --user -r requirements.txt
The above command also installs the latest Theano from github.com/Theano/Theano
Two options:
- Install Python directly (instructions)
- By Anaconda (instructions)
verify Python is installed correctly:
Open cmd and run:
C:\>python
> Python 3.X.X. ...
Install project requirements
cd project-root-folder/
pip install -r requirements.txt
0.1 Initial version
Melvin Wong (Github)
This project is licensed under the MIT - see LICENSE for details