April 2026
461 pages
17h 56m
English
It’s time to write a small Python program to convert our findings on the perceptron into program code. First, take a look at the following explanations and lines of code and transfer them to a new code cell in your Jupyter notebook to produce the output shown.
We use the attendances and absences of Mr. Leek and Mrs. Carrot as input. Each line in Table 3.4 represents an input vector with three values. Here, 1 stands for the bias neuron, the presence of Mrs. Carrot, and the presence of Mr. Leek.
|
Bias Neuron |
Mrs. Carrot |
Mr. Leek |
→ |
Monday |
Input Vector |
|---|---|---|---|---|---|
|
1 |
0 |
0 |
→ |
0 |
1 |
|
1 |
0 |
1 |
→ |
1 |
2 |
|
1 |
1 |
0 |
→ |
1 |
3 |
|
1 |
1 |
1 |
→ |
1 |
4 |
Table 3.4 The Extended Input Vector for the Planning ...
Read now
Unlock full access