In our last post, we had seen How AI Recommends You a Product to Buy on Amazon & Other E-commerce Sites (link to post if you hadn't seen), as a continutity to it, let's dive into the core machine learning concept that powers many such predictive AI models: Supervised Learning.
Also Read : What is Artificial Intelligence (A.I), GenAI and its future?
Let's begin..
What is Supervised learning?
You give it thousands of photos, each labeled as “cat” or “dog.”
It studies them like flashcards.
Later, when you give it a new photo with no label, it guesses what it is based on what it’s learned.
That’s called supervised learning.
This Supervised learning has two types.
- Classification Problem
- Regression Probelm
What is Classification Problem in Machine learning ?
In a classification problem, the goal is to teach the computer how to assign data to one or more classes, or categories.
Wait, what does this classes mean in A.I?
What is Binary classification in ML ?
Okay, What is Multi Class Classification in Machine Learning.?
What is Regression Problem in Supervised learning?
That’s regression: it’s all about predicting a number based on patterns. Whether you’re guessing someone’s age from their photo, how long a trip will take, or what score you’ll get on a test—it’s like smart guessing backed by past examples.
In a regression problem, the goal is to predict a numerical value based on patterns found in data. Instead of deciding between categories like “cat” or “dog,” the computer estimates things like price, temperature, age, or score.
For example: Imagine an app that helps people estimate the price of a house. It looks at details like how many bedrooms the house has, how big it is, and the neighborhood it’s in. After learning from thousands of past examples, it can guess that a new house might cost ₹1.2 million. It doesn’t say “cheap” or “expensive” — it gives a number.
That’s regression: using data to predict a value. One real word example, you might see is Stock Market. If a website shows this Nasdaq or share of bitcoin will reach $50000000 in 2080 then thats regression!
Let's close this post, with a recap on whats difference between Classification problems and regression problems.
Feature | Classification | Regression |
---|---|---|
🎯 Goal | Assign data to a category | Predict a numerical value |
🧠Type of Output | Discrete labels (e.g., Cat, Dog) | Continuous numbers (e.g.,1,200,000) |
🎓 Example Use Cases | Spam detection, disease diagnosis | House pricing, age prediction |
🔢 Number of Classes | Two (binary) or more (multi-class) | Just one continuous value |
📦 Prediction Format | “A” or “B” or “C”… | ₹15.2, 98.5 km/h, 37°C, etc. |
📊 Visual Output | Bar charts, confusion matrix | Line graphs, scatter plots |
To sum up:
Classification answers: “What is this?”
Regression answers: “How much?” or “What’s the value?”