|
|
@ -229,7 +229,6 @@ We are now ready to implement the learning algorithm. Before we do that, we also
|
|
|
|
We add a few `eps` to the original vector in order to avoid division by 0 in the initial case, when all components of the vector are identical.
|
|
|
|
We add a few `eps` to the original vector in order to avoid division by 0 in the initial case, when all components of the vector are identical.
|
|
|
|
|
|
|
|
|
|
|
|
Run them learning algorithm through 5000 experiments, also called **epochs**: (code block 8)
|
|
|
|
Run them learning algorithm through 5000 experiments, also called **epochs**: (code block 8)
|
|
|
|
|
|
|
|
|
|
|
|
```python
|
|
|
|
```python
|
|
|
|
for epoch in range(5000):
|
|
|
|
for epoch in range(5000):
|
|
|
|
|
|
|
|
|
|
|
|