REST API for Machine Learning Classifier for Spitsgids
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
data
notebooks
.gitignore
170115175919.model
201612301448.model
LICENSE.txt
README.md
datascraper.py
feature_extractor.py
mongoDAO.py
requirements.txt
server.py
setup.py
xgb.py

README.md

Spitsgids REST server

This is a REST server that uses machine learning to predict occupancy on the Belgian train network. An endpoint is currently running on 193.190.127.247

Example

GET http://localhost:8000/predict?departureTime=2017-01-15T17:00:55&vehicle=IC2816&from=008892007&to=008813003

{
  "high_probability": "0.176085",
  "low_probability": "0.515583",
  "medium_probability": "0.308332",
  "prediction": "low"
}

Running

  1. Install the dependencies (sudo) python setup.py install
  2. Start mongod on a certain port
  3. Change the host and portnumber of your running MongoDB in server.py and then execute it: python server.py

License

here