Machine Learning-Lecture 04
Machine Learning-Lecture 04
LECTURE – 04
CLASSIFICATION—A TWO-STEP PROCESS
Model construction: describing a set of predetermined
classes
2
CLASSIFICATION—A TWO-STEP PROCESS
Model usage:
For classifying future or unknown objects
Estimate accuracy of the model
The known label of test sample is compared with the
fitting)
If the accuracy is acceptable, use the model to classify new
data
3
PROCESS (1): MODEL CONSTRUCTION
Classification
Algorithms
Training
Data
Classifier
Testing
Data Unseen Data
(Jeff, Professor, 4)
NAME RANK YEARS TENURED
Tom Assistant Prof 2 no Tenured?
Merlisa Associate Prof 7 no
George Professor 5 yes 5
◦ note down its features – like whether it's red or yellow, large or small, and so on.
being an apple) based on the probabilities of certain related events (like the
25
Naïve Bayes Classifier: An Example
P(student = “yes” | buys_computer = “yes) = 6/9 = 0.667
26
Naïve Bayes Classifier: An Example
X = (age <= 30 , income = medium, student = yes, credit_rating =
fair)
n
P( X | C i) P( x k | C i)
k 1
29
Avoiding the Zero-Probability Problem
Use Laplacian correction (or Laplacian estimator)
30
Solve this: