Data Science
Data Science
and Practise an
h ug
u t
M
a n
L24 - Evaluation Metrics n a th
a
Ram
• Confusion Matrix
h y
a t
• Precision n ap
a
h ug
• Recall u t
M
a n
• F1-Score n a th
a
• True positive rate Ram
h y
a t
Actual Class ap TP - True Positive
a n
1 u g 0
th
u FP - False Positive
M
a n
t h
Predicted Class
TP n a FP
1 a FN - False Negative
a m
R
TN - True Negative
FN TN
0
Predicted Class
a n TP FP
am 1
R
FN TN
0
• Recall - Of all the actual positive cases, what ishythe fraction that has been
correctly predicted? a t
ap
a n Actual Class
TP u th ug 1 0
• R = M
TP + FN a th a n
Predicted Class
a n TP FP
am 1
R
FN TN
0
Predicted Class
n
TP Ram
a 1 30 FP
• R =
TP + FN
FN 3
0
Predicted Spam
classified as spam th TP FP
n a 1
a
am
• R
FN - Spam coming to your
inbox
FN TN
0
Predicted Class
a n 30 FP
am 1
R
FN 3
0
Predicted Class
a n 30 FP
am 1
R
FN 3
0
Predicted Class
n
FP R a m
a 1 TP FP
TPR
M
a n
th
n a
a
Ram
FPR
|A ∩ B|
DC = 2 * th y
• |A| + |B| n apa
a
ug
Areaofintersection u th
DC = 2 * n
M
• Sumofthetwoareas a th a
a n
Ram
|A ∩ B| y
IoU = th
• |A ∪ B| n apa
a
ug
Areaofintersection M
u th
DC = n
• Areaoftheunion a th a
a n
Ram