Support Vector Machine: Linear or Non-linear
9 views (last 30 days)
Tiago Dias on 11 Jul 2020
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
Thiago Henrique Gomes Lobato on 12 Jul 2020
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.