21.01.2014 Views

Support Vector Machines - The Auton Lab

Support Vector Machines - The Auton Lab

Support Vector Machines - The Auton Lab

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Quadratic Dot<br />

Products<br />

Φ( a)<br />

• Φ(<br />

b)<br />

=<br />

1+<br />

2<br />

m<br />

∑<br />

i=<br />

1<br />

a b +<br />

i<br />

i<br />

m<br />

∑<br />

i=<br />

1<br />

a b<br />

2 2<br />

i i<br />

+<br />

m<br />

m<br />

∑∑<br />

i= 1 j=<br />

i+<br />

1<br />

2a a b b<br />

i<br />

j<br />

i<br />

j<br />

Just out of casual, innocent, interest,<br />

let’s look at another function of a and<br />

b:<br />

( a.<br />

b + 1)<br />

2<br />

= ( a.<br />

b)<br />

+ 2a.<br />

b + 1<br />

2<br />

2<br />

m<br />

m<br />

⎛ ⎞<br />

= ⎜∑<br />

aibi<br />

⎟ + 2∑<br />

aibi<br />

+ 1<br />

⎝ i=<br />

1 ⎠ i=<br />

1<br />

m<br />

m<br />

= ∑∑aibia<br />

jb<br />

j<br />

+ 2∑<br />

aibi<br />

+ 1<br />

i= 1 j=<br />

1<br />

m<br />

m<br />

i=<br />

1<br />

= 2<br />

∑ ( a ) + 2∑∑<br />

+ 2 ∑<br />

ibi<br />

aibi<br />

a<br />

jb<br />

j<br />

aibi<br />

+ 1<br />

i=<br />

1<br />

m<br />

m<br />

i= 1 j=<br />

i+<br />

1<br />

m<br />

i=<br />

1<br />

<strong>The</strong>y’re the same!<br />

And this is only O(m) to<br />

compute!<br />

Copyright © 2001, 2003, Andrew W. Moore <strong>Support</strong> <strong>Vector</strong> <strong>Machines</strong>: Slide 51<br />

Maximize<br />

QP with Quadratic basis functions<br />

R<br />

R R<br />

1<br />

∑αk<br />

− ∑∑αkαlQkl<br />

Qkl<br />

= yk<br />

yl<br />

Φ(<br />

xk<br />

).<br />

k = 1 2 k = 1 l=<br />

1<br />

Subject to these<br />

constraints:<br />

0 ≤<br />

α k<br />

≤ C<br />

where ( Φ(<br />

xl<br />

))<br />

We must do R 2 /2 dot products to<br />

get this matrix ready. R<br />

∀k<br />

Warning: up until Rong Zhang spotted my error in<br />

Oct 2003, this equation had been wrong in earlier<br />

versions of the notes. This version is correct.<br />

∑<br />

α k<br />

y k<br />

Each dot product now only requires<br />

m additions and multiplications<br />

k = 1<br />

=<br />

0<br />

<strong>The</strong>n define:<br />

w =<br />

b<br />

k s.t.<br />

= y (1 − ε ) − x . w<br />

K<br />

∑<br />

α k<br />

α<br />

y k k<br />

> 0<br />

where K = arg max<br />

K<br />

Φ ( x<br />

k<br />

K<br />

k<br />

)<br />

α<br />

K<br />

k<br />

<strong>The</strong>n classify with:<br />

f(x,w,b) = sign(w. φ(x) -b)<br />

Copyright © 2001, 2003, Andrew W. Moore <strong>Support</strong> <strong>Vector</strong> <strong>Machines</strong>: Slide 52<br />

26

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!