13.07.2015 Views

SVM Example

SVM Example

SVM Example

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 6: The data represented in feature space.Our goal, again, is to discover a separating hyperplane that accurately discriminatesthe two classes. Of course, it is obvious that no such hyperplaneexists in the input space (that is, in the space in which the original input datalive). Therefore, we must use a nonlinear <strong>SVM</strong> (that is, one whose mappingfunction Φ is a nonlinear mapping from input space into some feature space).Define⎧ ( )( ) 4 − x2 + |x 1 − x 2 |⎪⎨if √ xx14 − xΦ 1 =1 + |x 1 − x 2 |2 1 + x2 2( )> 2(1)x 2 x1⎪⎩otherwisex 2Referring back to Figure 3, we can see how Φ transforms our data beforethe dot products are performed. Therefore, we can rewrite the data in featurespace as{( 22) ( 6,2for the positive examples and{( ) ( 1 1,1 −1) ( 6,6) ( −1,−1) ( 2,6)}) ( −1,1for the negative examples (see Figure 6). Now we can once again easily identifythe support vectors (see Figure 7):{ ( ) ( )}1 2s 1 = , s1 2 =2We again use vectors augmented with a 1 as a bias input and will differentiatethem as before. Now given the [augmented] support vectors, we must again findvalues for the α i . This time our constraints are)}6

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

Saved successfully!

Ooh no, something went wrong!