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("=====")