












































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 6: Nonlinear mapping, Model complexity
Cho-Jui Hsieh UCLA
Jan 28, 2019
Data is not linear separable
Data is not linear separable but circular separable by a circle of radius √ 0 .6 centered at origin: hSEP(x) = sign(−x 12 − x 22 + 0.6)
h(x) = sign( 0︸︷︷︸. 6 w ˜ 0
z 0
w ˜ 1
· (^) ︸︷︷︸x 12 z 1
w ˜ 2
· (^) ︸︷︷︸x 22 z 2
= sign( ˜w T^ z)
h(x) = sign( 0︸︷︷︸. 6 w ˜ 0
z 0
w ˜ 1
· (^) ︸︷︷︸x 12 z 1
w ˜ 2
· (^) ︸︷︷︸x 22 z 2
= sign( ˜w T^ z)
{(xn, yn)} circular separable ⇒ {(zn, yn)} linear separable
Define nonlinear transformation Φ(x) = (1, x 12 , x 22 ) = (z 0 , z 1 , z 2 ) = z
Define nonlinear transformation Φ(x) = (1, x 12 , x 22 ) = (z 0 , z 1 , z 2 ) = z
Linear hypotheses in Z space: sign(˜h(z)) = sign(˜h(Φ(x))) = sign(w T^ Φ(x))
A “bigger” Z-space: Φ 2 (x) = (1, x 1 , x 2 , x 12 , x 1 x 2 , x 22 )
A “bigger” Z-space: Φ 2 (x) = (1, x 1 , x 2 , x 12 , x 1 x 2 , x 22 )
Linear in Z-space ⇔ quadratic hypotheses in X -space
A “bigger” Z-space: Φ 2 (x) = (1, x 1 , x 2 , x 12 , x 1 x 2 , x 22 )
Linear in Z-space ⇔ quadratic hypotheses in X -space The hypotheses space: HΦ 2 = {h(x) : h(x) = ˜w T^ Φ 2 (x) for some ˜w } (Quadratic hypotheses) Also include linear model as a degenerate case
Transform original data {xn, yn} to {zn = Φ(xn), yn} Solve a linear problem on {zn, yn} using your favorite algorithm A to get a good model ˜w Return the model h(x) = sign( ˜w T^ Φ(x))
Can now freely do quadratic classification, quadratic regression, · · · Can easily extend to any degree of polynomial mappings E.g., Φ(x) = (x 1 , x 2 , x 3 , x 1 x 2 , x 1 x 3 , x 2 x 3 , x 1 x 22 , x 1 x 32 , x 1 x 22 , x 22 x 3 , x 12 x 3 , x 22 x 3 , x 13 , x 23 , x 33 )
Q-th order polynomial transform: Φ(x) = (1, x 1 , x 2 , · · · , xd , x 12 , x 1 x 2 , · · · , x d^2 , · · · x 1 Q , x 1 Q −^1 x 2 , · · · , xdQ ) O(dQ^ ) dimensional vector ⇒ High computational cost