Repository navigation
Algorithm
The support vector regression solution for the training points ( { y_i } ) is given by:
[ \vert y \rangle = K , \vert \alpha \rangle + b , \vert 1 \rangle ]
where ( \vert y \rangle ) is a vector of the training points, ( \vert 1 \rangle ) is a vector of all ones, ( \vert \alpha \rangle ) is a vector of the dual weights and ( K ) is the kernel matrix. Moving ( \vert y \rangle ) and ( \vert 1 \rangle ) into the feature space gives:
[ K , \vert z \rangle = K , \vert \alpha \rangle + b , K , \vert \nu \rangle ]
where ( K , \vert z \rangle = \vert y \rangle ) and ( K , \vert \nu \rangle = \vert 1 \rangle ). The problem is now to solve two sets of linear equations:
[ K , \vert z \rangle = \vert y \rangle ] [ K , \vert \nu \rangle = \vert 1 \rangle ]
Both can be solved as quadratic programming problems, and a conjugate gradient algorithm is used to do that. The support vector solution is then:
[ \vert \alpha \rangle = \vert z \rangle - b , \vert \nu \rangle ] [ b = \frac{ \langle 1 \vert z \rangle}{ \langle 1 \vert \nu \rangle } ]
The equation for the bias relies on the fact that the support vector solution is in the plane where ( \langle 1 \vert \alpha \rangle = 0 ), which is to say that the solution surface centers the data in the feature space.