How to build an API for a machine learning model in 5 minutes using Flask

By KDnuggets - 2021-01-05

Description

Flask is a micro web framework written in Python. It can create a REST API that allows you to send data, and receive a prediction as a response.

Summary

  • As a data scientist consultant, I want to make impact with my machine learning models.
  • Once you’ve got a full understanding of what data you’re dealing with and have aligned with the client on what steps to take, one of the outcomes can be to create a predictive model.
  • Create your model Let me show you how this works.
  • Request predictions Predictions are made by passing a POST JSON request to the created Flask web server which is on port 5000 by default.

 

Topics

  1. Backend (0.31)
  2. Machine_Learning (0.15)
  3. Frontend (0.14)

Similar Articles

Leading a Data Science Project from Scratch

By Medium - 2021-02-10

If you are new to leading a project in data science, you will have many questions despite having gone through the same steps one too many times as an intern, or an engineer in the team. When it comes…

How to put machine learning models into production

By Stack Overflow Blog - 2020-10-12

The goal of building a machine learning model is to solve a problem, and a machine learning model can only do so when it is in production and actively in use by consumers. As such, model deployment is ...

30 Most Asked Machine Learning Questions Answered

By Medium - 2021-03-18

Machine Learning is the path to a better and advanced future. A Machine Learning Developer is the most demanding job in 2021 and it is going to increase by 20–30% in the upcoming 3–5 years. Machine…