Python Forum
How to perform predictions on a data in csv file using Flask? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Web Scraping & Web Development (https://python-forum.io/forum-13.html)
+--- Thread: How to perform predictions on a data in csv file using Flask? (/thread-10495.html)



How to perform predictions on a data in csv file using Flask? - manjusavanth - May-23-2018

I have built a machine learning classifier model, I was able to create a FLASK api for single request/response prediction of classification model.

However I want to perform the predictions on a data in a .csv file instead of a single request and response.

Here are the steps followed till now,

1. Saving the current trained machine learning model using
2. Using SQLite databases for data storage
3. Developing a web application using the popular Flask web framework for request and response.

I was able to do this successfully. However I am not able to build the same for larger records in a csv file.

The complete code is attached to the link below, refer to app.py file for suggesting modification.

Code link