diff options
author | HombreLaser <sebastian-440@live.com> | 2023-10-09 22:11:36 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-10-09 22:11:36 -0600 |
commit | 2bf14162ad4a68dae22471807d5dcd0176a3c186 (patch) | |
tree | 4f7feba68ac8554f141857ca7f481f277e87a2fb | |
parent | 56a7431cf08bbdbd5c2e94bc0d95a702b1d8e398 (diff) |
Improve the train's method docstring
-rw-r--r-- | neural_network.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/neural_network.py b/neural_network.py index 3ca1c64..90fd304 100644 --- a/neural_network.py +++ b/neural_network.py @@ -21,6 +21,13 @@ class NeuralNetwork: """ Train the neural network. It loads the dataset contained in ./data, converts each image into a numpy array and uses that data for training. + Algorithm: + 1-. Feedforward the input matrix. + 2-. Calculate the output layer error. + 3-. Adjust the weights of the output layer via gradient descent. + 3-. Calculate the hidden layer error by backpropagating the output layer + error. + 4-. Adjust the weights of the hidden layer via gradient descent. """ def train(self): pass |