summaryrefslogtreecommitdiff
path: root/neural_network.py
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-10-09 22:11:36 -0600
committerHombreLaser <sebastian-440@live.com>2023-10-09 22:11:36 -0600
commit2bf14162ad4a68dae22471807d5dcd0176a3c186 (patch)
tree4f7feba68ac8554f141857ca7f481f277e87a2fb /neural_network.py
parent56a7431cf08bbdbd5c2e94bc0d95a702b1d8e398 (diff)
Improve the train's method docstring
Diffstat (limited to 'neural_network.py')
-rw-r--r--neural_network.py7
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