Introduction To Artificial Intelligence: Amna Iftikhar Fall ' 2019 1
Introduction To Artificial Intelligence: Amna Iftikhar Fall ' 2019 1
Intelligence
Lecture 07
Amna Iftikhar Fall ' 2019 1
Today’s Agenda
• Supervised learning
– Naïve Bayes
• Accuracy of Classifiers
• Ensemble Methods
Class=Yes Class=No
ACTUAL Class=Yes a b
CLASS (TP) (FN)
Class=No c d
(FP) (TN)
a
ACTUAL Class=Yes a b
CLASS
Recall (r)
(TP) (FN)
Class=No c d
ab (FP) (TN)
2rp 2a
F - measure (F)
r p 2a b c
Precision is biased towards C(Yes|Yes) & C(Yes|No)
Recall is biased towards C(Yes|Yes) & C(No|Yes)
F-measure is biased towards all except C(No|No)
wa w d
Weighted Accuracy 1 4
T F Class=Yes Class=No
F T ACTUAL
CLASS Class=Yes a b
(TP) (FN)
T T
Class=No c d
(FP) (TN)
Muhammad Usman Arif Spring 2019 25
Recall and Precision
Actual Prediction • Precision = 4 / 7
T T
T F
F T
F F
F T
T T
T T
T F
F T
T T