ERNICommunity / dust-measurement-network

Dust Measurement Network - air pollution data measurement
MIT License
4 stars 5 forks source link

Prediction server + refactoring #36

Closed mareklinka closed 5 years ago

mareklinka commented 5 years ago

This PR mostly contains the finalization of the keras model - correct cleaning of training features, improves one-hot encoding of categoricals.

It also contains the prediction server written in Flask - basically a standalone web server that takes the pre-trained model and exposes its prediction API over HTTP. I added a Dockerfile that encapsulates this server into a properly-exposed web server behind nginx and uwsgi.

Finally, I reorganized the python code (moved it away from data) and refactored it a little bit. With this, we should have a fully functional and deployable prediction engine on our hands.