0% found this document useful (0 votes)
2 views

Lecture 3

The document discusses the Naïve Bayes algorithm and its implementation in Scikit-learn, emphasizing the importance of understanding accuracy, precision, and recall when evaluating model performance. It introduces the confusion matrix and explains the concepts of true positives, false positives, true negatives, and false negatives. The document concludes that a good model should achieve high precision and recall, and mentions the F1-measure as a relevant metric.

Uploaded by

szayon469
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Lecture 3

The document discusses the Naïve Bayes algorithm and its implementation in Scikit-learn, emphasizing the importance of understanding accuracy, precision, and recall when evaluating model performance. It introduces the confusion matrix and explains the concepts of true positives, false positives, true negatives, and false negatives. The document concludes that a good model should achieve high precision and recall, and mentions the F1-measure as a relevant metric.

Uploaded by

szayon469
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 11

Naïve Bayes

SCIKIT-LEARN IMPLEMENTATION
Why accuracy can be misleading?
Confusion Matrix
Predicted

Actual Positive Negative


Positive True Positive (TP) False Negative (FN) Type II
Negative False Positive (FP) True Negative (TN) error

Type I error

Predicted

Actual Orange: Positive Grapefruit: Negative


Orange : Positive True Positive (TP) False Negative (FN)
Grapefruit: Negative False Positive (FP) True Negative (TN)
Recall

Correctly identified positives

Actually positives
Precision

Correctly identified positives

Predicted as positives
Precision vs Recall
Precision vs Recall
Positive Negative
Pred
icted
Actual
Positive 10 0
Negative 90 5
Precision vs Recall
Positive Negative
Pred
icted
Actual
Positive 10 90
Negative 0 5
A “good” model will
have both high
precision & recall!
F1-measure
Speech

You might also like