Home
Implementation
Training:
Compute Gram matrix
G
ij
=
y
i
y
j
K
(q
i
; q
j
)
Solve QP to get a
Compute intercept
c
by using complementarity or duality
Classification:
Compute
k
i
=
K
(q, q
i
) for support vectors q
i
Compute
f
=
c
+Σ
i
a
i
k
i
y
i
Test sign(
f
)