Docsity

SVM/NNet Practice Problems: Solution | CS 3600, Assignments of Computer Science

Toggle sidebar
bg1
SVM/NNet practice problems: Solution
a b a XOR b
0 0 0
0 1 1
1 0 1
1 1 0
Table 1: Truth table for binary XOR operation.
Example answers for the two questions about SVMs and neural networks:
1. A perceptron cannot learn the XOR function because XOR is not linearly
separable. Try drawing the XOR function on a graph. There exists no line
that puts all of the 0s on one side and all of the 1s on the other. A SVM
can learn XOR because it projects the problem into a higher dimensional
space where the 1s and 0s become separable by a hyperplane. That is, when
projected into some other space, there does exist a line that separates the 1s
from the 0s.
Read on for part two...
1
pf2

Partial preview of the text

Download SVM/NNet Practice Problems: Solution | CS 3600 and more Assignments Computer Science in PDF only on Docsity!

SVM/NNet practice problems: Solution

a b a XOR b 0 0 0 0 1 1 1 0 1 1 1 0

Table 1: Truth table for binary XOR operation.

Example answers for the two questions about SVMs and neural networks:

  1. A perceptron cannot learn the XOR function because XOR is not linearly separable. Try drawing the XOR function on a graph. There exists no line that puts all of the 0s on one side and all of the 1s on the other. A SVM can learn XOR because it projects the problem into a higher dimensional space where the 1s and 0s become separable by a hyperplane. That is, when projected into some other space, there does exist a line that separates the 1s from the 0s.

Read on for part two...

Figure 1: A solution neural network for part 2.

  1. We will use a step activation function (thresholded to 0 or 1). XOR is not linearly separable, so we will need to use a hidden layer. A possible solution is shown in Figure 1. In the diagram, t indicates the threshold level.