Web application that uses scikit-learn

Viewed 10990

I have locally trained a sklearn classifier and I have to create a simple web application that demonstrate its use. I'm a complete noob on web app development and I don't want to waste hours on creating a web app using a framework that doesn't support the modules I'm using.

  1. What do you suggest would be a good approach for this task?
  2. What web app development framework should I use (if any)?
  3. Do I have to dive into things like Heroku , django etc. or is there more simple and quicker solutions for a simple scientific demo?

My thought was to take the classifier I trained, pickle it and un-pickle it on the server, then to run classify from the server, but I'm not sure where to begin.

6 Answers

If you go the flask route, I highly recommend that you watch the Corey Shafer series on Youtube. It's a solid series that will get you underway quickly, and there are many helpful notes from other viewers in the comment section.

Additionally, since I presume you'll build your models elsewhere and look to score them on your site, you will likely want to use pickle to store the model objects after development, and then load the model objects using pickle within your flask config.py.

Related