diff options
| author | Kagamino <martin@lehoux.net> | 2019-02-27 13:03:50 +0100 |
|---|---|---|
| committer | Kagamino <martin@lehoux.net> | 2019-02-27 13:03:50 +0100 |
| commit | af249b50507397b35c662b2781648917dcc427ed (patch) | |
| tree | 304b906818e697b91950c323210636c72c90db95 /main.py | |
| parent | 52af06b804e137b8b2dd3811edbe62e02d0d97d2 (diff) | |
typo
Diffstat (limited to 'main.py')
| -rw-r--r-- | main.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -3,6 +3,7 @@ import numpy as np import random import matplotlib.pyplot as plt import time +from timeit import timeit def sigmoid(x): return 1 / (1 + exp(-x)) @@ -92,8 +93,8 @@ class MultiLayerPerceptron(): print(text, end="") # Train for j in range(iterations): - input, excpected = random.choice(space) - self.backprop(input, excpected) + input, expected = random.choice(space) + self.backprop(input, expected) self.fit() # Test errors = [] |
