![]() Volume 10, Issue 1 Articles Trott's Corner New Products New Publications Calendar News Bulletins New Resources Classifieds Download This Issue Editorial Policy Staff and Contributors Submissions Subscriptions Advertising Back Issues Contact Information |
A Flexible Implementation for Support Vector Machines
Feature Space and KernelsIn all of the preceding examples, the separating surface is assumed to be linear (a hyperplane). This is often a serious limitation, as many pattern recognition problems are inherently nonlinear in the input data and require nonlinear separating surfaces. To overcome this obstacle, for each specific problem we devise some appropriate transformation As an example, consider a second-degree polynomial surface in
and forming a hyperplane in The problem with this approach is that nonlinear This problem is elegantly solved by kernels. It turns out that there are many functions
In the case of example (6), it turns out that
we can obtain any polynomial separating surfaces. A Nonlinear Example: Using KernelsLet us see how kernels are handled in MathSVM to solve nonlinear problems. The second-degree kernel in (6) is provided by
Here is some data a linear classifier cannot possibly cope with.
Let us solve this problem using the polynomial kernel. This is done as before, by supplying the desired kernel (which can be any function accepting two arguments) using the KernelFunction option.
When visualizing the results, SVMPlot can use the kernel functions to draw any nonlinear decision curves.
High-Dimensional Input SpacesAn interesting consequence of the kernel idea is that the dimensionality of the input space
The kernel matrix is still just
The SVM algorithm is still fast, although the problem is much harder due to extremely low sample density, which is reflected by more support vectors (the nonzero
The solution in this case may be viewed using the projection of data onto the weight vector
|
||||||||
About Mathematica | Download Mathematica Player © 2006 Wolfram Media, Inc. All rights reserved. |