0
$\begingroup$

Say I have an XOR classification. At point (-2,1) I have a circle, at point (2,1) I have a square, at point (-2,-1) I have a square, and at point (2,-1) I have a circle. The circles belong to one class say +1 and the squares belong to a separate class say -1. I am looking for a kernel function which can lead to zero training error using SVM.

I am currently in two dimensions and can send ($x_1$,$x_2$) $\rightarrow$ ($x_1x_2, x_2)$ to separate the classes. This will move the circles on one side and the squares on the other side and we can draw our boundary right down the middle. However, I am having some trouble writing down a kernel function that can lead to zero training error using SVM. All I have found so far is a map. If I wanted to map down to one dimension to separate the classes then I could send $x=(x_1,x_2) \rightarrow x_1x_2$.

$\endgroup$
1
  • $\begingroup$ OP should have a right mapping as well. $\endgroup$ Commented Dec 12, 2016 at 2:20

1 Answer 1

1
$\begingroup$

The simplest transform is:

($x_1$,$x_2$) $\rightarrow$ ($1,\sqrt{2} x_1,\sqrt{2} x_2, \sqrt{2}x_1x_2,x_1^2,x_2^2 )$

Pattern Classification (2nd ed.) from Richard O. Duda, Peter E. Hart and David G. Stork

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.