Classification L12
Classification L12
g Discriminant functions
g The optimal Bayes classifier
g Quadratic classifiers
g Euclidean and Mahalanobis metrics
g K Nearest Neighbor Classifiers
Select
Select max
max
Costs
Costs
xx1
1
xx2
2
xx3
3
xxd
d
Features
P( | x) if we decide
P(error | x) = 1 2
P( 2 | x) if we decide 1
gMAP
i (x) = P( i | x)
P(wi|x)
n The right plot shows the posterior
for each of the two classes
n The bottom plots shows the
P(error) for the MAP rule and
another rule
n Which one has lower P(error)
(color-filled area) ? x
Mahalanobis Distance
x2
2 −1 µ
x-y ∑ i −1
= (x − y) ∑i (x − y)
T
2
xi - ∑ −1
=K
2
xi - =
Zoom
out
Zoom
out
ki
gi (x) =
k
g This is known as the k Nearest Neighbor classifier
77
7 7
7 77
-15
777777 7
77
-20 7
7
-0.06 -0.05 -0.04 -0.03 -0.02 -0.01 0 0.01 0.02 0.03
axis 1