Supervised ML - Aamir P

Supervised ML - Aamir P

Hey all!

In this article, we will discuss Supervised ML. Supervised learning involves training a model using labelled data, where the input data (bananas) is accompanied by the corresponding output labels. The model learns from this labelled data to make predictions on new, unseen data. So, we require previous data and previous results as input. Predicting the results become more accurate in this way.


The above picture is to distinguish fruits. The data has to be labelled or classified for different fruits in the collection. The data is divided into classes in supervised learning. So, the model is learning the features from the labelled data (i.e.) yellow colour, curved shape, etc. and learns it as per the annotation banana. In future, it can predict based on these features and give a result banana. The different methods in Supervised ML are classification, regression, naïve Bayes theoremSVMKNNdecision tree, etc.


We will now learn with a real-time example to understand Supervised Learning better.

Imagine you are a Data Scientist working in an e-commerce company. Your goal is to build a model that can predict whether a customer will make a purchase based on certain features such as browsing behaviour, demographics, and past purchase history. This is where supervised machine learning comes into play.


Let us learn it through the steps of the process to understand it better.

  1. Data Collection

You must have gathered a dataset that has customer information like age, gender, browsing duration, etc. This is your training data.

2. Data Preprocessing

Here we preprocess the data by handling missing values, splitting and training, etc. Henceforth, to be simple we will train and test the model to check performance.

3. Model Training

We train the model using the labelled training data. For that, we can go with approaches like logistic regression, decision trees, support vector machines, etc. The model learns to find patterns and relationships between the input features and the corresponding labels.

4. Model Evaluation

Once the training is over we will be testing it. But to know the model is working fine we check the metrics like accuracy, precision, recall, etc. to evaluate our model.

5. Prediction

With a trained and evaluated model, you can now make predictions on new, unseen data. For instance, when a new customer visits your e-commerce website, you can feed their features into the model, and it will predict the likelihood of them making a purchase.

6. Iteration and Improvement

The model doesn't stop there. You can continue refining the model by experimenting with different algorithms. The iteration improves accuracy and prediction.


By utilizing supervised machine learning, you can build a predictive model that helps the e-commerce company identify potential customers who are more likely to make a purchase. This, in turn, enables targeted marketing strategies, personalized recommendations, and enhanced customer experiences.


So, that's it for the day! Thanks for your time in reading my article. Tell me your feedback or views in the comments section.


Check out this link to know more about me



To view or add a comment, sign in

More articles by AAMIR P

  • Azure Data Factory — Aamir P

    Hello readers! I’m doing Azure Data Factory as part of my learning journey. Let us learn together in this article.

  • Fabric Data Engineer — Aamir P

    Hi all! Currently, as a part of my learning journey, I’m planning to take up the DP-700 certification. This will help…

  • CPG (Consumer Packed Goods)— Aamir P

    Hello Readers! In this article, we will gain some understanding about CPG. What is CPG? Things that are frequent in…

    1 Comment
  • Dataiku — Aamir P

    I found this tool very interesting and thought of sharing it with you all. I learnt this from Dataiku Academy.

  • PySpark — Aamir P

    As part of my learning journey and as a requirement for my new project, I have started exploring Pyspark. In this…

  • Data Build Tool(DBT) — Aamir P

    This is a command-line environment that allows you to transform and model the data in data warehousing using SQL…

  • SSIS Data Warehouse Developer — Aamir P

    SQL Server is an RDBMS developed by Microsoft. It is used to store and retrieve data requested by apps.

    4 Comments
  • Talend — Aamir P

    Hello Readers! In this article, we will learn about Talend. Data integration is crucial for businesses facing the…

  • Data Warehousing and BI Analytics — Aamir P

    Hello Readers! In this article, we will have a beginner-level understanding of Data Warehousing and BI Analytics. Hope…

  • TensorFlow - Aamir P

    Hi all! This is just some overview which I’m going to write about. Some beginners were asking me for a basic…

Others also viewed

Explore content categories