Git Product home page Git Product logo

ml-mdc's Introduction

Machine Learning based Multiple Discrete Continuous (ML-MDC) Behavioural Choice Modelling

File description

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

Discrete variable numbering values

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 }

Dataset

The dataset is a small sample from the Mtl Trajet 2016 dataset

Getting started

run python3 main.py script to start the estimation to reproduce the results of the CRBM model

Prerequisites

Python 3.5+ (with pip3), Numpy, Pandas, Theano

Installation

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

Ubuntu (Unix)

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

Windows

Two options:

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

Versioning

0.1 Initial version

Authors

Melvin Wong (Github)

Licence

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

ml-mdc's People

Contributors

billjee avatar mwong009 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.