[SOLVED] ECE 449 Assignment 6

25.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You will receive the following solution file(s) instantly after successful payment:

zip file icon ECE449_A06_SOL-ofkqef.zip (180.1 KB)
Assignment Instructions Updated Recently? Submit Below and we will provide new Solution!
Submit New Instructions
🔒 Securely Powered by:
Secure Checkout
5/5 - (1 vote)
  1. Consider the following training set

         0                     0                     1                     1           

   0,t1= 0,x2= 1,t2=1,x3= 0,t3=1,x4= 1,t4=1x1=

  1. Plot the training samples in the feature space.
  2. Apply the perceptron learning rule to the training samples one-at-a-time to obtain weights w1, w2, and bias w0 that separate the training samples. Use w = [w0, w1, w2] = [0, 0, 0] as initial values (consider bias input x0 = 1, and learning rate = 1). Write the expression for the resulting decision boundary and draw it in the graph. [Hint: You can use Excel / OO Calc to implement the learning rule for perceptron, such as the spreadsheet of InClass_09 posted on eClass].
Epoch Inputs Desired output t Initial weights Actual output y Error Updated weights
  x1 x2   w0 w1 w2     w0 w1 w2
1 0 0 0 0 0 0          
  0 1 1                
  1 0 1                
  1 1 1                
2 0 0 0                
  0 1 1                
  1 0 1                
  1 1 1                
3 0 0 0                
  0 1 1                
  1 0 1                
  1 1 1                
  1. [5 points] Consider the following training set

         0                     0                     1                     1            

x1= 0,t1= 0,x2= 1,t2=1,x3= 0,t3=1,x4= 1,t4= 0

                                 

which describes the exclusive OR (XOR) problem.

  1. a) Establish mathematical (not graphical) proof that this problem is not linearly separable. [Hint: Start with assumption that these patterns are linearly separable, write down equations/inequalities corresponding to this assumption and examine them for conflict; first such inequality is provided below as an example.]

Suppose that the problem is linearly separable. The decision boundary can be represented as:

∑20 𝑥𝑖𝑤𝑖 = 0  or (expanded)  𝑥0𝑤0 + 𝑥1𝑤1 + 𝑥2𝑤2 = 0

This assumption means that either

  1. 𝑥0𝑤0 + 𝑥1𝑤1 + 𝑥2𝑤2 < 0𝑓𝑜𝑟 (𝑥1, 𝑥2) = (0,1) ∧ (𝑥1, 𝑥2) = (1,0),

𝑥0𝑤0 + 𝑥1𝑤1 + 𝑥2𝑤2 ≥ 0𝑓𝑜𝑟 (𝑥1, 𝑥2) = (0,0) ∧ (𝑥1, 𝑥2) = (1,1)

or

  1. 𝑥0𝑤0 + 𝑥1𝑤1 + 𝑥2𝑤2 > 0𝑓𝑜𝑟 (𝑥1, 𝑥2) = (0,1) ∧ (𝑥1, 𝑥2) = (1,0).

𝑥0𝑤0 + 𝑥1𝑤1 + 𝑥2𝑤2 ≤ 0𝑓𝑜𝑟 (𝑥1, 𝑥2) = (0,0) ∧ (𝑥1, 𝑥2) = (1,1) must be satisfied. Following one of the cases and putting the values (𝑥1, 𝑥2) under variables, one obtains

(1) 𝑥0𝑤0 + 𝑤2 < 0

(2)

(3)

(4)

…

  1. b) Apply the perceptron learning rule following the same procedure as in Problem 1. Describe your observation.
Epoch Inputs Desired output t Initial weights Actual output y Error Updated weights
  x1 x2   w0 w1 w2     w0 w1 w2
1 0 0 0 0 0 0          
  0 1 1                
  1 0 1                
  1 1 0                
2 0 0 0                
  0 1 1                
  1 0 1                
  1 1 0                
3 0 0 0                
  0 1 1                
  1 0 1                
  1 1 0                

 

  • ECE449_A06_SOL-ofkqef.zip