Exercise 9        Name __________________        Score __/13

  1. (2) Plot the following training set. Is it linearly separable?
    x1 x0 y
    0 0 0
    0 1 1
    1 0 0
    1 1 1
  2. (2) Using the algorithm of Figure 20.21, weights of W0=0.3, W1=-0.4, and alpha learning rate of 0.2 compute the activation output for input of x1=0, x0=1.
  3. (2) Continuing with Question 2, compute the weights after the first epoch.
  4. (3) Modify the algorithm inputs to attempt learning of the even parity operation for 3 inputs, that is:
    x2 x1 x0 y
    0 0 0 0
    0 0 1 1
    0 1 0 1
    0 1 1 0
    1 0 0 1
    1 0 1 0
    1 1 0 0
    1 1 1 1

    You'll need to run more epochs or training iterations.

    Was it able to learn, that is produce correct outputs?

  5. (4) Modify algorithm of Figure 20.25 for the 3 input even parity operation. You'll need to change the number of inputs and hidden nodes. Try with 2, 3 and 4 hidden nodes; what was the result?