This project contains different files:
-
assemble_adaboost.ipynbNotebook with answers to the questions. You need to run this notebook in order to create a save of the trained assemble.Adaboost model as well as auser_id_counterdictionnary. These two pickled objects will be reused for the api. -
utils.pyA python file with helper functions for pre-processing and plots -
assembleAdaboost.pyA python file containing the Assemble Adaboost model implementation -
app.pyA python file containing the api -
Dockerfilethe dockerfile to build the api -
test_app.pytests for the api
To build the app in a container, simply run:
docker build -t fraud_detection .
Then to run it run: docker run -d -p 5000:5000 fraud_detection
You get then make requests on http://localhost:5000/score