diff options
| author | Kagamino <martin@lehoux.net> | 2019-04-01 16:21:51 +0200 |
|---|---|---|
| committer | Kagamino <martin@lehoux.net> | 2019-04-01 16:21:51 +0200 |
| commit | 2c0ba9fa615fc567acf03cf21b5dd3c9e598d91a (patch) | |
| tree | ee1cacfa6aca05871737bc8d117d2925d6d5c7b6 | |
| parent | eb0c5403eab27eb5d94c90721a331668f7bc56ee (diff) | |
verbose mode
| -rw-r--r-- | main.py | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) |
