Supervised Learning
The model learns from examples where the correct answer is already known.
Example: Predict house pricesMachine Learning is not one single technique. Different types of Machine Learning are used depending on what information we have and what we want the computer to learn.
Sometimes we give the model examples with known answers. Sometimes we give it data without answers and ask it to discover patterns. In other situations, an agent learns by interacting with an environment and receiving rewards or penalties.
At a high level, Machine Learning is commonly divided into three major categories.
The model learns from examples where the correct answer is already known.
Example: Predict house pricesThe model receives data without known answers and looks for useful patterns or groups.
Example: Group similar customersAn agent learns by taking actions and receiving rewards or penalties from an environment.
Example: Learn to play a gameIn supervised learning, the training data contains examples where the correct answer is known.
Information about the example.
Finds relationships in the data.
The answer the model learns to predict.
For example, we can give a model information about houses together with their actual selling prices. The model can learn a relationship between the house information and its price.
In unsupervised learning, the data does not contain a known target answer for every example.
Instead, the algorithm tries to discover structure, relationships, or groups inside the data.
For example, a company might have thousands of customers but no predefined customer groups. An unsupervised learning algorithm could help find groups of customers with similar behavior.
Reinforcement learning works differently from the previous two approaches.
Instead of learning from a fixed dataset of labelled examples, an agent interacts with an environment, takes actions, and receives feedback.
Over time, the agent learns which actions are more useful for achieving its goal.
Training examples include known labels.
Training data does not provide known labels.
Actions produce rewards or penalties.
Two of the most common supervised learning problems are classification and regression.
Example: Is an email spam or not spam?
Output → CategoryExample: What will this house cost?
Output → NumberOne common unsupervised learning task is clustering.
Clustering attempts to organize data points into groups based on similarities between them.
The important point is that we did not provide the algorithm with predefined customer labels. The algorithm discovers groups based on the data.
Start by asking what information you have and what you want the system to learn.
These categories are not just different names for the same thing. The learning setup changes depending on whether the model receives known answers, discovers patterns, or learns through interaction and feedback.
Supervised learning learns from labelled examples. Unsupervised learning searches for structure in unlabelled data. Reinforcement learning learns through actions and feedback.
Imagine you have thousands of customer records and want to automatically discover groups of customers with similar purchasing behavior.
This is an unsupervised learning problem because there are no predefined customer group labels.
A clustering algorithm could be used to discover groups with similar behavior.