Construct a support vector machine that computes the XOR function. It will be convenient to use values of 1 and —1 instead of I and 0 for the inputs and for the outputs. So an example looks like ([—1. ii, 1) or ([—1, —1], —1). It is typical to map an input x into a space consisting of five dimensions, the two original dimensions x1 and x2, and the three combination x21, x22 and x1, x2. But for this exercise we will consider only the two dimensions x1 and x1 x2. Draw the four input points in this space, and the maximal margin separator. What is the margin? Now draw the separating line back in the original Euclidean input space.

  • CreatedFebruary 14, 2011
  • Files Included
Post your question