Xor Gate: Perceptron Can Not Realize An XOR Gate. We Need More Complex Network or Use Different Transfer Functions
Xor Gate: Perceptron Can Not Realize An XOR Gate. We Need More Complex Network or Use Different Transfer Functions
x1
w1
1 w1
slope =
y w2
2 w2
w2
0 2
x2
W1=1, w2=2, 2
Decision Boundaries for AND and OR
This hyperplane is clearly still linear and can still only divide the
space into two regions. We still need more complex transfer
functions, or more complex networks, to deal with XOR type
problems.
Y Y Y Y
+1 +1 +1 +1
0 X 0 X 0 X 0 X
-1 -1 -1 -1
1, if X 0 1, if X 0 1
Y step Y sign Y sigmoid Y linear X
0, if X 0 1, if X 0 1 e X
1
0.8
0.6
0.4 1
0.2 0.5
0
-5 0 5 0
-0.5
1, net 0
f (net ) sgn( net ) bipolar binary
1, net 0
1, net 0
f (net ) sgn( net ) unipolar binary
0, net 0
2
f (net ) 1 bipolar continuous
1 e ( net)
1, net 0
f (net ) sgn( net ) bipolar binary
1, net 0
1
f (net ) ( net)
unipolar continuous
1 e
1, net 0
f (net ) sgn( net ) unipolar binary
0, net 0
0.9
0.8
0.7
0.6
0.5
a=logsig(n) = 1 / (1 + exp(-n))
0.4
0.3
0.2
0.1
0
-5 -4 -3 -2 -1 0 1 2 3 4 5