• 検索結果がありません。

WRITE(*,600)MAX_EPOCH

ドキュメント内 新潟大学学術リポジトリ (ページ 100-109)

100 FORMAT(’ ---’/

& ’ We now search a perceptron with one neuron-like’/

& ’ element that behaves as the logical OR function,’/

& ’ by the perceptron learning algorithm.’/

& ’ ---’//

& ’ Epoch W1 W2 H’/

& ’ --- --- --- ---’) 200 FORMAT(1X, I4, 2X, F6.3, 2X, F6.3, 2X, F6.3)

300 FORMAT(4X, ’| Example’,I1,’:X1=’,I1,’ X2=’,I1,’ T=’,I1,’ Output:’,

& I1,’ ==> ’, ’W1+=’,F6.3, ’ W2+=’,F6.3, ’ H+=’,F6.3)

400 FORMAT(4X, ’| Example’,I1,’:X1=’,I1,’ X2=’,I1,’ T=’,I1,’ Output:’,

& I1,’ ==> It behaves correctly.’)

500 FORMAT(/’ *** We found a required perceptron. ***’)

600 FORMAT(/’ *** We trained a perceptron ’, I3, ’ epochs, ***’/

& ’ *** but couldn’’t find a required perceptron. ***’) END

***************************************************************************

* A module for generating pseudo-random numbers *

***************************************************************************

'

&

$

%

We omit to display the code,

since it is already given in the

section 3–6 .

5–6 Experimental Results

The program in the previous section 5–5 reports how the weights w i and the threshold h are updated so that the hy-pothesis perceptron will become consistent with the given 4 examples.

Executing that program, we obtain the following results:

xcspc60_42% g77 training_perceptron_OR.f

compile the source code and generate an executable code "a.out"

xcspc60_43% a.out invoke the executable code "a.out"

Type in a random seed (positive integer).

1 input to the executing program "a.out"

---We now search a perceptron with one neuron-like element that behaves as the logical OR function, by the perceptron learning algorithm.

---Epoch W1 W2 H

--- --- --- ---0 0.014 -0.060 0.136

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:0 ==> W1+= 0.010 W2+= 0.000 H+=-0.010

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 1 0.034 -0.040 0.106

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:0 ==> W1+= 0.010 W2+= 0.000 H+=-0.010

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 2 0.054 -0.020 0.076

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:0 ==> W1+= 0.010 W2+= 0.000 H+=-0.010

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 3 0.074 0.000 0.046

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

4 0.074 0.010 0.036

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

5 0.074 0.020 0.026

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

6 0.074 0.030 0.016

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

*** We found a required perceptron. ***

xcspc60_44% a.out invoke the executable code "a.out"

Type in a random seed (positive integer).

3 input to the executing program "a.out"

---We now search a perceptron with one neuron-like element that behaves as the logical OR function, by the perceptron learning algorithm.

---Epoch W1 W2 H

--- --- --- ---0 0.042 -0.491 0.176

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:0 ==> W1+= 0.010 W2+= 0.000 H+=-0.010

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 1 0.062 -0.471 0.146

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:0 ==> W1+= 0.010 W2+= 0.000 H+=-0.010

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 2 0.082 -0.451 0.116

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:0 ==> W1+= 0.010 W2+= 0.000 H+=-0.010

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 3 0.102 -0.431 0.086

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010

4 0.112 -0.411 0.066

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 5 0.122 -0.391 0.046

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 6 0.132 -0.371 0.026

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 7 0.142 -0.351 0.006

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 8 0.152 -0.331 -0.014

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 9 0.162 -0.311 -0.024

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 10 0.172 -0.291 -0.034

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 11 0.182 -0.271 -0.044

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 12 0.192 -0.251 -0.054

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:0 ==> W1+= 0.010 W2+= 0.010 H+=-0.010 13 0.202 -0.231 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

14 0.202 -0.221 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

15 0.202 -0.211 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

16 0.202 -0.201 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

17 0.202 -0.191 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

18 0.202 -0.181 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

19 0.202 -0.171 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

20 0.202 -0.161 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

21 0.202 -0.151 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

22 0.202 -0.141 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

23 0.202 -0.131 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

24 0.202 -0.121 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

25 0.202 -0.111 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

26 0.202 -0.101 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

27 0.202 -0.091 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

28 0.202 -0.081 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

29 0.202 -0.071 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

30 0.202 -0.061 -0.064

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

31 0.202 -0.061 -0.054

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

32 0.202 -0.051 -0.054

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

33 0.202 -0.051 -0.044

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

34 0.202 -0.041 -0.044

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

35 0.202 -0.041 -0.034

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

36 0.202 -0.031 -0.034

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

37 0.202 -0.031 -0.024

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

38 0.202 -0.021 -0.024

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

39 0.202 -0.021 -0.014

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

40 0.202 -0.011 -0.014

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

41 0.202 -0.011 -0.004

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

42 0.202 -0.001 -0.004

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

43 0.202 -0.001 0.006

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:0 ==> W1+= 0.000 W2+= 0.010 H+=-0.010

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

44 0.202 0.009 -0.004

| Example1:X1=0 X2=0 T=0 Output:1 ==> W1+= 0.000 W2+= 0.000 H+= 0.010

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

45 0.202 0.009 0.006

| Example1:X1=0 X2=0 T=0 Output:0 ==> It behaves correctly.

| Example2:X1=0 X2=1 T=1 Output:1 ==> It behaves correctly.

| Example3:X1=1 X2=0 T=1 Output:1 ==> It behaves correctly.

| Example4:X1=1 X2=1 T=1 Output:1 ==> It behaves correctly.

*** We found a required perceptron. ***

xcspc60_45%

5–7 What kind of Boolean function can perceptron rep-resent?

• Perceptrons can represent the simple Boolean functions AND, OR and NOT.

1 1 1.5 x

y

x

AND

y 1

1 0.5 x

y

x

OR

y

ドキュメント内 新潟大学学術リポジトリ (ページ 100-109)

関連したドキュメント