aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKagamino <martin@lehoux.net>2019-04-01 16:21:51 +0200
committerKagamino <martin@lehoux.net>2019-04-01 16:21:51 +0200
commit2c0ba9fa615fc567acf03cf21b5dd3c9e598d91a (patch)
treeee1cacfa6aca05871737bc8d117d2925d6d5c7b6
parenteb0c5403eab27eb5d94c90721a331668f7bc56ee (diff)
verbose mode
-rw-r--r--main.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index ade7a7c..2dbfa3d 100644
--- a/main.py
+++ b/main.py
@@ -14,6 +14,7 @@ def d_sigmoid(x):
d_sigmoid = np.vectorize(d_sigmoid)
learning_rate = 0.001
+verbose = False
class Layer():
@@ -120,7 +121,7 @@ class MultiLayerPerceptron():
text += "{:2d} m ".format(remaining//60)
remaining = remaining % 60
text += "{:2d} s".format(remaining)
- print(text, end="")
+ if verbose: print(text, end="")
# Train
for j in range(iterations):
input, expected = random.choice(space)