Machine Learning Types
Machine Learning Types
Chapter: 1
FUNDAMENTALS OF
COMPUTER
What is a computer ?
• Computer is an advanced electronic device that takes raw data as input
from the user and processes it under the control of instructions, gives the
result and saves it for the future use.
Computer Science 9th
Supervised Learning
• Supervised learning is a type of machine learning
that uses labeled data to train machine learning
models. In labeled data, the output is already
known. The model just needs to map the inputs to
the respective outputs.
• An example of supervised learning is to train a
system that identifies the image of an animal.
• Attached below, you can see that we have our
trained model that identifies the picture of a cat.
What is Supervised Learning?
The regression algorithm’s task is mapping input value (x) The classification algorithm’s task mapping the input value of x with the
with continuous output variable (y). discrete output variable of y.
They are used with continuous data. They are used with discrete data.
It attempt to find the best fit line, which predicts the output Classification tries to find the decision boundary, which divides the
more accurately. dataset into different classes.
Regression algorithms solve regression problems such as Classification algorithms solve classification problems like identifying
house price predictions and weather predictions. spam e-mails, spotting cancer cells, and speech recognition.
We can further divide Regression algorithms into Linear and We can further divide Classification algorithms into Binary Classifiers
Non-linear Regression. and Multi-class Classifiers.
When to Use Regression vs. Classification?
• We use Classification trees when the dataset must be divided into classes
that belong to the response variable. In most cases, those classes are “Yes”
or “No.” Thus, there are just two classes, and they are mutually exclusive.
Of course, there sometimes may be more than two classes, but we just use
a variant of the classification tree algorithm in those cases.
• However, we use Regression trees when we have continuous response
variables. For example, if the response variable is something like the
value of an object or today’s temperature, we use a Regression tree.
Real-Life Applications of Supervised Learning
Risk Assessment: Supervised learning is used to assess the risk in financial services or
insurance domains in order to minimize the risk portfolio of the companies.
Image Classification: Image classification is one of the key use cases of demonstrating
supervised machine learning. For example, Facebook can recognize your friend in a picture from
an album of tagged photos.
Fraud Detection: To identify whether the transactions made by the user are authentic or
not.
Visual Recognition: The ability of a machine learning model to identify objects, places,
people, actions, and images.
Unsupervised Learning
What is Unsupervised Learning?
• In Unsupervised Learning, the machine uses unlabeled data and learns on itself
without any supervision. The machine tries to find a pattern in the unlabeled data and
gives a response.
• Let's take a similar example is before, but this time we do not tell the machine whether
it's a spoon or a knife. The machine identifies patterns from the given set and groups
them based on their patterns, similarities, etc.
Unsupervised learning can be further grouped into types:
• Clustering
• Association
Clustering
Clustering - Unsupervised Learning
• Clustering is the method of dividing the objects into clusters that are similar between them and are
dissimilar to the objects belonging to another cluster. For example, finding out which customers made
similar product purchases.
• Suppose a telecom company wants to reduce its customer churn rate by providing personalized call
and data plans. The behavior of the customers is studied and the model segments the customers with
similar traits. Several strategies are adopted to minimize churn rate and maximize profit through
suitable promotions and campaigns.
• On the right side of the image, you can see a graph where customers are grouped. Group A customers
use more data and also have high call durations. Group B customers are heavy Internet users, while
Group C customers have high call duration. So, Group B will be given more data benefit plants, while
Group C will be given cheaper called call rate plans and group A will be given the benefit of both.
Association - Unsupervised Learning
Identifying Accident Prone Areas: Unsupervised machine learning models can be used to
identify accident-prone areas and introduce safety measures based on the intensity of those
accidents.
Market Basket Analysis: It is a machine learning model based on the algorithm that if you
buy a certain group of items, you are less or more likely to buy another group of items.
Semantic Clustering: Semantically similar words share a similar context. People post
their queries on websites in their own ways. Semantic clustering groups all these responses
with the same meaning in a cluster to ensure that the customer finds the information they
want quickly and easily. It plays an important role in information retrieval, good browsing
experience, and comprehension.
Supervised learning Vs. Un-supervised Learning
It uses known and labeled data as input It uses unlabeled data as input