The deployment of the machine learning model is rarely discussed. Most of the data science programs, online courses do not focus on model deployment. It is one of the important and last stages in the machine learning life cycle. To start using your machine learning model for practical decision-making, it needs to be effectively deployed into production. The focus of this article is to deploy a machine learning model using a flask.

Here I am using mall customer dataset to understand customer behavior. We are going to build a clustering model on historic data. Using this model we can predict the behavior of the new customer.

Let’s build our model using k-means clustering.

  1. Import Libraries

We need to import all the required libraries

Image for post

2. Get the data

Image for post

Image for post

Getting the dataset is not enough. We have to perform exploratory data analysis.

#data #machine-learning #data-science #flask

Deploying a Machine Learning Model using Flask for beginners
2.95 GEEK