Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
2
Lecture 8
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
J is minimized when
1 X
ci = xj .
Ni x ∈S
j i
5
Lecture 8
2. cnew
k = c old + η(x − cold )
k j k
3. Set cnew
k as cold
k ;
6
Lecture 8
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
7
Lecture 8
i 6 7 8 9 10
x1,i 0.2 0.1 0.9 0.8 0.3
x2,i 0.8 0.7 0.3 0.1 0.1
ti 1 1 1 1 1
8
Lecture 8
0.9
0.8
0.7
0.6
x2
0.5
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x
1
which is
Φw = t
10
Lecture 8
w is found to be
w = [−74.1191, −65.3503, −8.2930, 138.2853]T
For any x, the class label is determined by
checking g(x) > 0 or g(x) < 0, as listed be-
low.
i 1 2 3 4 5
x1,i 0.5 0.4 0.6 0.6 0.8
x2,i 0.7 0.5 0.6 0.4 0.6
ti -1 -1 -1 -1 -1
sign(g(xi)) -1 -1 -1 -1 -1
i 6 7 8 9 10
x1,i 0.2 0.1 0.9 0.8 0.3
x2,i 0.8 0.7 0.3 0.1 0.1
ti 1 1 1 1 1
sign(g(xi)) 1 1 1 1 1
11
Lecture 8
0.9
0.8
0.7
0.6
x2
0.5
0.4
0.3
0.2
0.1
0
0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1
x1
4. Calculate
w = (ΦT Φ)−1ΦT t