| ... | ... | @@ -271,15 +271,25 @@ En revanche, pour l'entrée 7, la sortie désirée est 1 mais la sortie réelle |
|
|
|
|
|
|
|
```math
|
|
|
|
\sum_{i=1}^4 s_i w_i + s_0 w_0 = 1\times 0 + 0\times 0 + 0 \times 0 + 1\times 0 + -1\times 2 = -2
|
|
|
|
```
|
|
|
|
|
|
|
|
```math
|
|
|
|
w_1 \leftarrow w_1 + \eta(d-y)s_1 = 0 + 1 \times (1-0)\times 1 = 1
|
|
|
|
```
|
|
|
|
|
|
|
|
```math
|
|
|
|
w_2 \leftarrow w_2 + \eta(d-y)s_2 = 0 + 1 \times (1-0)\times 0 = 0
|
|
|
|
```
|
|
|
|
|
|
|
|
```math
|
|
|
|
w_3 \leftarrow w_3 + \eta(d-y)s_3 = 0 + 1 \times (1-0)\times 0 = 0
|
|
|
|
```
|
|
|
|
|
|
|
|
```math
|
|
|
|
w_4 \leftarrow w_4 + \eta(d-y)s_4 = 0 + 1 \times (1-0)\times 1 = 1
|
|
|
|
```
|
|
|
|
|
|
|
|
```math
|
|
|
|
w_0 \leftarrow w_0 + \eta(d-y)s_0 = 2 + 1 \times (1-0)\times -1 = 1
|
|
|
|
```
|
|
|
|
|
| ... | ... | |
| ... | ... | |