Professional Documents
Culture Documents
x1 ,n11
x1 ,n1
ArgMAX
x2 ,1
x2 ,n21
x2 ,n2
Lecture 3
Lecture 3
5
1 X
x)2
(x1,i
1
exp
5 i=1 2
2
3
1 X
x)2
and
(x2,i
1
y2(x) =
exp
3 i=1 2
2
Lecture 3
0.4
0.35
0.3
0.25
y (x)
2
y (x)
1
0.2
0.15
0.1
0.05
0
15
10
10
15
1
exp
y2(3) =
3 2
+ exp
(6 3)2
2
(6.5 3)2
+ exp
(7 3)2
2
!)
Lecture 3
exp
3 2
(6 x)2
2
+ exp
(
1
=
exp
5 2
+ exp
(7 x)2
2
(2 x)2
2
(3 x)2
2
+ exp
+ exp
(6.5 x)2
!)
+ exp
+ exp
(6 x)2
2
(2.5 x)2
2
(1 x)2
2
!!
!)
Lecture 3
Lecture 3
5
1 X
5 i=1
3
1 X
3 i=1
exp
exp
(x1,i
x)2
x)2
2
(x2,i
nj
1 X
nj i=1
exp
xk)2
(kxj,i
2 2
j = 1, ..., M
where nj denotes the number of data points
in class j. The PNN assigns x into class k
if yk (x) > yj (x), j [1, ..., M ]. kxj,i xk2 is
calculated as the sum of squares. e.g. if xj,i =
[2, 4]T , x = [3, 1]T , then
kxj,i xk2 = (2 3)2 + (4 1)2 = 10
7
Lecture 3
x1,1 1 0
x1,2 0 1
x1,3 1 1
x2,1 -1 0
x2,2 0 -1
class 1
class 2
Solution:
1
y1(x) = {exp
3
+ exp
+ exp
(1 0.5)2 + (0 0.5)2
2
(0 0.5)2 + (1 0.5)2
2
(1 0.5)2 + (1 0.5)2
2
= 0.7788
8
Lecture 3
y2(x) =
1
{exp
2
+ exp
(1 0.5)2 + (0 0.5)2
2
(0 0.5)2 + (1 0.5)2
2
= 0.4724
Because y2(x) < y1(x), so x = [0.5, 0.5]T is
classified as Class 1.
2
Class 1
Class 2
Class ?
1.5
0.5
0.5
1.5
2
2
1.5
0.5
0.5
1.5