From b8cec2747e459e82795b169a1dd2f2f87d7fad63 Mon Sep 17 00:00:00 2001 From: njpau <44917033+njpau@users.noreply.github.com> Date: Wed, 6 May 2020 22:15:14 +1000 Subject: [PATCH] Update mlp.py --- .../code/mlp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/8- Training a neural network: Implementing back propagation from scratch/code/mlp.py b/8- Training a neural network: Implementing back propagation from scratch/code/mlp.py index d3f323a..72bed37 100644 --- a/8- Training a neural network: Implementing back propagation from scratch/code/mlp.py +++ b/8- Training a neural network: Implementing back propagation from scratch/code/mlp.py @@ -139,7 +139,7 @@ def train(self, inputs, targets, epochs, learning_rate): sum_errors += self._mse(target, output) # Epoch complete, report the training error - print("Error: {} at epoch {}".format(sum_errors / len(items), i+1)) + print("Error: {} at epoch {}".format(sum_errors / len(inputs), i+1)) print("Training complete!") print("=====")