Clear Filters
Clear Filters

Support Vector Machine: Linear or Non-linear

6 views (last 30 days)
Hi,
I have a doubt on SVM.
SVM is a linear or non-linear method, or it depend on the type of kernel i am using.
If i am using a polynomial or rbf kernel, i think that the SVM-poly or SVM-rbf is non-linear.
But if i am using a linear kernel, does that make the SVM non-linear or sill linear?
Thanks for any upcoming help

Accepted Answer

Thiago Henrique Gomes Lobato
SVM is always linear in the parameters, but using non-linear kernels allows it to consider non-linear relations between the data by transforming then to another feature space (ex: both f(x,y) = a*x+b*y and f(x,y) = a*x*y+b*log(y)/x are linear in the parameters, but the second example is a non-linear function in x and y), especially with kernels like rbf that can have an infinite equivalent in the parameter space. You can check own matlab documentation page about the method for some more insights. One of the main advantages of SVM is to replace this feature space transformation by a kernel function, since then only the dot product is needed and, depending of your kernel, can produce an enourmous computational and description gain.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!