This project contains a basic python application for predicting bus leave times with different machine learning models (linear regression, DNN regression).
The project is highly modular, a different model can be used with the same data and training process by inheriting from the Model
class and creating a new instance of it in leave_times/__init__.py
(see included models for examples).
- Python 3 (developed using
v3.5.4
)
Make sure python
, pip
and the Scripts
directory are in the path and run the following commands:
pip install --upgrade --user virtualenv
cd {project directory}
virtualenv env
env\Scripts\activate
pip install pip-tools
pip-sync requirements-dev.txt
pip-sync requirements.txt
Activate virtual environment (env\Scripts\activate
), then run: python leave_times/__init__.py
.
- Models
- Linear regression:
leave_times/linear_regression.py
- Neural Network:
leave_times/neural_network.py
- Linear regression:
- Data
- Training data:
data/log.csv
- Test data:
data/log_unlabeled.csv
- Training data:
This project is based on Google's Machine Learning Crash Course.