/Travel_mode_prediction

Matlab and Python codes for travel mode prediction using statistical and machine learning models.

Primary LanguageJupyter NotebookGNU General Public License v3.0GPL-3.0

Travel mode prediction

Matlab and Python codes for travel mode prediction using statistical and machine learning models.

Python code for machine learning models

  1. You will need Anaconda Python (Python 3) to be able to install and use the programming environment.
  2. Install the conda environment. This yaml file has passed tests in Windows 10 and Windows Subsystem Linux (Linux 4.4.0-19041-Microsoft x86_64).
conda-env create -f travel_mode_pred.yml
  1. To make this new env visible in jupyter notebook you then need to run the following two commands.
conda activate travel_model_pred
python -m ipykernel install --name travel_mode_pred
  1. Activate the environment using jupyter notebook, and switch to the installed kernel.
  2. Run the notebook of Travel_mode_prediction_London_ML_Oversampling_v2.ipynb.

Matlab code for statistical models (aka logit models)