What is Supervised Machine Learning?
Supervised Machine Learning is training a computer in the same way that we train children using examples.
Let’s break it step by step
Example with Fruits
Consider a scenario where you are training a child on how to identify fruits.
-
You show an apple and say, “This is an apple.”
-
You show a banana and say, “This is a banana.”
-
After watching lots of apples and bananas the child begins to notice the patterns:
-
Apples are usually round, red, or green.
-
Bananas are long and yellow.
-
Next time even when you give the child a new apple (not the one you showed him or her before) the child is able to say: “That looks like an apple!”
How Computers Learn in the Same Way
In supervised ML:
-
Input (Data) = The items that we present to the computer (such as images of fruits, emails or medical records of patients).
-
Output (Label/Correct Answer) = What the data really is (Apple, Banana, Spam, Not Spam, Healthy, Sick).
-
Learning Process = The computer will examine lots of examples and attempts to identify patterns that relate input to output.
Later, we feed the computer with some sort of new input it has never encountered before, it can now make predictions on what it has learned the correct output to provide.
Why is it called "Supervised"?
The word supervised comes from the fact that:
-
The computer is not learning blindly.
-
During training we do provide it with the right answers (labels) just as a teacher would do with student.
The computer would be unable to know whether it is doing the prediction right or wrong without the answers in the correct form.
Imagine that you have a teacher (labels) who controls the learning process.
A Simple Real Life Example:
-
Student’s Homework: A student solves math problems (inputs).
-
Answer Key: The teacher gives the correct answers (labels).
-
Learning: The student compares his/her work with the answer key and learns mistakes.
-
Exam Day: The student receives new problems (unseen inputs) and applies what he or she has learned to this new problems in order to solve them in a right way.
And that is what supervised machine learning does!
So simply we can say "Supervised Machine Learning is that we monitor the learning with the right answers (labels)."
Steps in Supervised Learning
Let's talk about all steps:
-
Collect Data
-
Sample: Thousands of spam emails or spam not emails.
-
-
Preprocess Data
-
Cleaning the data like remove errors, fill missing values etc.
-
Text or Images datsets are converted into numbers so that computer can understand.
-
-
Split Data
-
Training Set, like 80% of total dataset → This is used to train the model.
-
Testing Set, like 20% of total dataset → Used to check if the model learned well.
-
-
Train the Model
-
The algorithm (Model) discovers patterns between the inputs and the outputs.
-
-
Test/Evaluate the Model
-
Accuracy of checks on new data (testing set).
-
-
Improve the Model
- It is now time to do it with more relevant data, or experiment with better tuning parameters or with more suitable algorithms.
Common Algorithms in Supervised Learning
Let’s quickly explore the most popular ones (no heavy math, just intuition):
Challenges in Supervised Learnin
Real-World Applications
Advantages, Limitations & Future Scope
Conclusion
Supervised Machine Learning is an example-based teaching. . It drives numerous systems in the real world in predicting house prices, and in the detection of diseases.
Simple models such as Linear/Logistic Regression can also be used by the beginners, and, subsequently, there are more complicated models, which include Random Forests and Neural Networks.
The key is good data + right algorithm + careful evaluation.
If you found this post useful:
⮕ Share it with others who might benefit.
⮕ Leave a comment with your thoughts or questions—I’d love to hear from you.
⮕ Follow/Subscribe to the blog for more helpful guides, tips, and insights.
Comments
Post a Comment