Unit 1 ML
Unit 1 ML
4
What is this object?
5
What is this object?
CAR
CAR
BIKE
It is a CAR
BIKE
6
Let us ask the same
question to him
What is this object?
7
Let us ask the same question to him
What is this object?
?
8
[ But, he is a human being. He can
observe and learn ]
Let us make him learn
show him
10
Let us make him learn
CAR
show him
CAR
BIKE
BIKE
11
Let us ask the same question now
What is this object?
CAR
CAR
BIKE
BIKE
Past experience 10
Let us ask the same question now
CAR What is this object?
CAR
CAR
BIKE
BIKE
13
What about a Machine ?
• Addition
• Multiplication
• Division
15
What about a Machine ?
• Comparison
• Plotting a chart
16
What is Machine
Learning?
Price in 2025?
recognize face
[ Recognize Faces ]
21
What is Machine
Learning?
[ What do we do?
22
What is Machine
Learning?
[
This what we called as Data
or Training dataset
Dataset
23
What is Machine
Learning?
+ +
[ Then, devise algorithms and execute programs on the
data
Dataset
24
What is Machine
Learning?
+ + +
+ + +
+ + +
+ + + =
29
Machine Learning Paradigms
• Supervised
• Unsupervised Learning
• Reinforcement learning
[ We as human being solve various types of problem in our day-to-day life, <pause> Various decisions
need to be taken.
Depending on the nature of the problem, machine learning tasks can be broadly divided in ] 30
What is Supervised
Learning?
CAR
CAR
Samples Labels
[In supervised learning, we need some thing called a Labelled Training Dataset ]
31
What is Supervised
Learning?
CAR
𝑓( ,
)=
CAR
Samples Labels
32
What is Supervised
Learning?
CAR
𝑓( , )= CAR
CAR
Samples Labels
33
What is Supervised
Learning?
CAR
𝑓( , )= CAR
Classification
CAR
Samples Labels
[ If the possible output values of the function are predefined and discrete/categorical, it is called
Classification
33
Classifier
Elephant
Elephant
Classifier
Dataset
35
Regression
• Regression
•𝑓( , )= 20500.50
Dataset
[ If the possible output values of the function are continuous real values, then it is called 36
Regression
[
The classification and Regression problems are supervised, because the decision depends on the
characteristics of the ground truth labels or values present in the dataset, which we define as experience
]
37
What is Unsupervised Learning
CAR
CAR
BIKE
BIKE
Dataset
[ In the unsupervised learning, we do not need to know the labels or Ground truth 38
values ]
What is Unsupervised Learning
Clustering
Dataset
[ The task is to identify the patterns like group the similar objects together ]
39
More Example Unsupervised
Learning
Dataset
40
More Example Unsupervised
Learning
Dataset
41
What is Reinforcement Learning
42
What is Reinforcement Learning
43
What is Reinforcement Learning
44
What are Human and Machine Learning?
What is Machine Learning?
• Classification
• Regression
Classification
• Image Segmentation
• Medical Diagnosis
• Fraud Detection
• Spam detection
• Speech Recognition
Unsupervised Machine Learning
Unsupervised learning can be further classified into two types, which are given
below:
• Clustering
• Association
Clustering
• The clustering is used to find the inherent groups from the data.
• the objects in the group are most similar to each other and no similarities with the
objects of other groups.
• An example of the clustering algorithm is grouping the customers by their purchasing
behavior.
Some of the popular clustering algorithms are given below:
• K-Means Clustering algorithm
• Mean-shift algorithm
• DBSCAN Algorithm
• Principal Component Analysis
• Independent Component Analysis
Association
Advantages:
• These algorithms can be used for complicated tasks.
• Unsupervised algorithms are preferable for various tasks on unlabeled dataset is easier
Disadvantages:
• The output of an unsupervised algorithm can be less accurate as the dataset is not labelled,
• algorithms are not trained with the exact output in prior.
• It is more difficult as it works with the unlabeled dataset that does not match with the
output.
Applications of Unsupervised Learning
• Network Analysis
• Recommendation Systems
• Anomaly Detection
• Singular Value Decomposition
Semi-Supervised Learning
• To overcome the drawbacks of supervised learning and unsupervised learning algorithms,
the concept of Semi-supervised learning is introduced.
• It is the intermediate ground between Supervised (With Labelled training data) and
Unsupervised learning (with no labelled training data) algorithms
• Hence, it uses the combination of labelled and unlabeled datasets during the training
period.
• Initially, similar data is clustered along with an unsupervised learning algorithm, and
further, it helps to label the unlabeled data into labelled data.
• It is because labelled data is a comparatively more expensive than unlabeled data.
Advantages and disadvantages of Semi supervised Learning
• Advantages:
• It is simple and easy to understand the algorithm.
• It is highly efficient.
• is used to solve drawbacks of Supervised and Unsupervised Learning algorithms.
• Disadvantages:
• Iterations results may not be stable,
• We cannot apply these algorithms to network-level data.
• Accuracy is low.
Reinforcement Learning
• Reinforcement learning works on a feedback-based process, learning from experiences, and
improve its performance.
• Agent gets rewarded for each good action and get punished for each bad action;
• hence the goal of reinforcement learning agent is to maximize the rewards.
• A reinforcement learning problem can be formalized using Markov Decision Process
(MOP).
• In MDP, the agent constantly interacts with the environment and performs actions; at each
action, the environment responds and generates a new state.
• In RL, there is no labelled data like supervised learning, and agents learn from their
experiences only.
Categories of Reinforcement Learning
AI
ML
DL
AI
ML
DS DL
DMARC:
Domain'PASS' Learnauthentication
based message more Reporting and conformance
Standard policy frame work