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.

Higher Order Polynomials<br />

Polynomial<br />

Quadratic<br />

Cubic<br />

Quartic<br />

φ(x)<br />

All m 2 /2<br />

terms up to<br />

degree 2<br />

All m 3 /6<br />

terms up to<br />

degree 3<br />

All m 4 /24<br />

terms up to<br />

degree 4<br />

Cost to<br />

build Q kl<br />

matrix<br />

tradition<br />

ally<br />

m 2 R 2 /4<br />

Cost if 100<br />

inputs<br />

2,500 R 2<br />

m 3 R 2 /12 83,000 R 2<br />

m 4 R 2 /48 1,960,000 R 2<br />

Cost to<br />

build Q kl<br />

matrix<br />

sneakily<br />

φ(a).φ(b)<br />

(a.b+1) 2<br />

(a.b+1) 3<br />

(a.b+1) 4<br />

mR 2 / 2<br />

mR 2 / 2<br />

mR 2 / 2<br />

Cost if<br />

100<br />

inputs<br />

50 R 2<br />

50 R 2<br />

50 R 2<br />

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

QP with Quintic basis functions<br />

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

matrix ready.<br />

Maximize ∑αk<br />

+ ∑∑αkαlQ<br />

where Q ( ( ). ( ))<br />

kl<br />

kl<br />

= yk<br />

yl<br />

Φ xk<br />

Φ xl<br />

In 100-d, each k = 1dot product k = 1now l=<br />

1 needs 103<br />

operations instead of 75 million<br />

R<br />

But there are still worrying things lurking away.<br />

Subject to these<br />

What are they? 0 ≤ α k<br />

≤ C ∀k<br />

∑ α k<br />

y k<br />

= 0<br />

constraints:<br />

k = 1<br />

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

w =<br />

b<br />

k s.t.<br />

K<br />

∑<br />

α k<br />

α<br />

y k k<br />

> 0<br />

K<br />

Φ ( x<br />

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

where K = arg max<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 54<br />

27

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

Saved successfully!

Ooh no, something went wrong!