Welcome! Log In Create A New Profile

Advanced

My Final answer Tut102 Q1.4 Correct?

Posted by francoisdt 
Announcements Last Post
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
My Final answer Tut102 Q1.4 Correct?
October 07, 2006 06:42PM
Start from scratch

f = x1 v x2.x3 (Assume x2x3 is multipplication and not logical "and"?

My vectors that is going tobe used below:
==========================================
Use vectors is in the question is the threshold value always 1?
Why they tell use here threshold = 0in the question. Should my last
vector value not be 1 but 0? Is mine below incorrect

Vectors:
========
vectorx1 = <0 1 0 1>
vectorx2 = <1 0 0 1>
vectorx3 = <0 0 1 1>
vectorx4 = <1 1 1 1>

Training:
=========
Step 1:
=======
W1 = (0 0 0 0)
positional then x1 x2 x3 x4 match below to value (positional)
Vectorx1 = (0 1 0 1 )
so when calc d = x1 v x2x3 values in order of the X vector are used
so d = 0 v 1.0 = 0 v 0 = 0
W1.X = (0.0 + 0.1 + 0.0 + 0.1) = 0
So f = 1

Step 2:
=======
W2 = W1 + c(d-f)X1 = (0 0 0 0) + 1(0-1)(0 1 0 1 )
= (0 -1 0 -1)
positional then x1 x2 x3 x4 match below to value
Vector X = (1 0 0 1)
so when calc d = x1 v x2x3 values in order of the X vector are used
so d = 1 v 0.0 = 1 v 0 = 1
W2.X = (0 -1 0 -1).(1 0 0 1) = (0.1 + -1.0 + 0.0 + -1.1) = -1
So f = 0

Step 3:
=======
W3 = W2 + c(d-f)X2 = (0 -1 0 -1) + 1(1-0)(1 0 0 1)
= (0 -1 0 -1) + (1 0 0 1)
= (1 -1 0 0)
positional then x1 x2 x3 x4 match below to value
Vector X = (0 0 1 1)
so when calc d = x1 v x2x3 values in order of the X vector are used
so d = 0 v 0.1 = 0 v 0 = 0
W3.X = (1 -1 0 0).(0 0 1 1)=(1.0 + -1.0 + 0.1 + 0.1) = 0
So f = 1


Step 4:
=======
W4 = W3 + c(d-f)X3 = (1 -1 0 0) + 1(0-1)(0 0 1 1)
= (1 -1 0 0)+(0 0 -1 -1)
= (1 -1 -1 -1)
positional then x1 x2 x3 x4 match below to value
Vector X = (1 1 1 1)
so when calc d = x1 v x2x3 values in order of the X vector are used
so d = 1 v 1.1 = 1 v 1 = 1
W4.X = (1 -1 -1 -1).(1 1 1 1)=(1.1 + -1.1 + -1.1 + -1.1) = -2
So f = 0


Step 5:
=======
W5 = W4 + c(d-f)X4 = (1 -1 -1 -1) + 1(1-0).(1 1 1 1)
= (1 -1 -1 -1)+(1 1 1 1)
= (2 0 0 0)
positional then x1 x2 x3 x4 match below to value
Vector X = (1 0 1 1)
so when calc d = x1 v x2x3 values in order of the X vector are used
so d = 1 v 0.1 = 1 v 0 = 1
W4.X = (2 0 0 0).(1 0 1 1)=(2.1 + 0.0 + 0.1 + 0.1) = 2
So f = 1

Know that both f and d = 1 is this then final vector???
weight vector = w5 = (2 0 0 0) and threshold = 0


How do one know when to stop training??


Step 6:
=======
W6 = W5 + c(d-f)X5 = (2 0 0 0) + 1(1-1).(0 1 1 0)
= (2 0 0 0)


If w6 = w5 then w5 is last weight vector???

Is my answer correct or must I use threshold = 0
in vectors as in q1.4 states threshold = 0

So all my input vectors must have 0 instead of
1 at end ??????

Vectors:
========
vectorx1 = <0 1 0 0> I used above vector <0 1 0 1>
vectorx2 = <1 0 0 0> I used above vector <1 0 0 1>
vectorx3 = <0 0 1 0> I used above vector <0 0 1 1>
vectorx4 = <1 1 1 0> I used above vector <1 1 1 1>


CF
Re: My Final answer Tut102 Q1.4 Correct?
October 08, 2006 08:11AM
I emailed the lecturer about the correct answer and have had a reply.

The answer is:

x1 or (x2 and x3)
first output is:
0 or (1 and 0)
=0 ir 0 = 0

second:
1 or (0 and 0)
=1 or 0 = 1

etc.

Desired output

<0 1 0> 0
<1 0 0> 1
<0 0 1> 0
<1 1 1> 1

Final weight vector (2 -1 0 ) threshold is 1.

d of W5 is the same d as W1, 0

Your W6 should be (2 -1 0 -1) from this point on the TLU is trained
Sorry, only registered users may post in this forum.

Click here to login