

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Lecture 03 Support vector machines (SVM). 18.
As in the previous lecture, consider the classification setting. Let X = R
d
, Y = {+1, − 1 }, and
H = {ψx + b, ψ ∈ R
d
, b ∈ R}
where |ψ| = 1.
We would like to maximize over the choice of hyperplanes the minimal distance from the data to the hyper
plane:
max min d(x i
H i
where
d(x i , H) = y i (ψx i
Hence, the problem is formulated as maximizing the margin:
max min y i (ψx i
ψ,b i
m (margin)
Rewriting,
y i
(ψx i
y i (ψ
�
x i
�
) = ≥ 1 ,
m
ψ
�
= ψ/m, b
�
= b/m, |ψ
�
| = |ψ|/m = 1/m. Maximizing m is therefore minimizing |ψ
�
|. Rename ψ
�
→ ψ, we
have the following formulation:
min |ψ| such that y i (ψx i
Equivalently,
min
ψ · ψ such that y i (ψx i
Introducing Lagrange multipliers:
φ =
ψ · ψ − α i (y i (ψx i
Take derivatives:
∂φ
= ψ − α i y i x i
∂ψ
∂φ
= − α i
y i
∂b
Hence,
ψ = α i
y i
x i
and
α i
y i
Lecture 03 Support vector machines (SVM). 18.
Substituting these into φ,
φ =
α i
y i
x i
2
n �
α i
y i
n �
α j
y j
x j
x i
i=1 j=
α i
α j
y i
y j
x i
x j
− α i
α j
y i
y j
x i
x j
− b α i
y i
i,j i,j
= α i
α i
α j
y i
y j
x i
x j
The above expression has to be maximized this with respect to α i
, α i
≥ 0, which is a Quadratic Programming
problem.
Hence, we have ψ = i
n
=
α i
y i
x i
Kuhn-Tucker condition:
α i = 0� ⇔ y i (ψx i
Throwing out non-support vectors x i
does not affect hyperplane α i
The mapping φ is a feature mapping:
x ∈ R
d
−→ φ(x) = (φ 1
(x), φ 2
(x), ...) ∈ X
�
where X
� is called feature space.
Support Vector Machines find optimal separating hyperplane in a very high-dimensional space. Let K(x i
, x j
∞
φ k
(x i
)φ k
(x j
) be a scalar product in X
�
. Notice that we don’t need to know mapping x → φ(x). We k=
only need to know K(x i
, x j
∞
k=
φ k
(x i
)φ k
(x j
), a symmetric positive definite kernel.
Examples:
(1) Polynomial: K(x 1
, x 2
) = (x 1
x 2
� , � ≥ 1.
(2) Radial Basis: K(x 1
, x 2
) = e
−γ|x 1 −x 2 |
2
(3) Neural (two-layer): K(x 1 , x 2
1+e
αx
1
1 x 2 +β
for some α, β (for some it’s not positive definite).
Once α i
are known, the decision function becomes
sign α i
y i
x x
· x + b = sign α i
y i
K(x i
, x) + b