Skip to content

A python predictive system design. Managed by Amine Baatout

Notifications You must be signed in to change notification settings

ptzagk/ml-in-prod

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ML in prod

A python predictive system design.

Building the pipeline

$ cd training
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python training.py

Running the server

  • If you did the previous steps then:
$ cd ../; deactivate
$ cd server
$ virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python main.py

Making online predictions

Once the server is running you can send features via POST requests and then receive the corresponding prediction (0 or 1). You can find an example of the request body in server/post.json:

$ curl -H "Content-Type: application/json" -X POST --data @post.json http://localhost:5000/predict

About

A python predictive system design. Managed by Amine Baatout

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%