Commit 50f7929
committed
fix(training): correct loop bounds and indexing in weights update
The change fixes incorrect loop bounds and indexing when updating weights from the hidden layer to output layer. The outer loop now iterates over network.inputCount instead of network.hiddenCount, and the inner loop iterates over network.hiddenCount instead of network.outputCount. This ensures that each input node properly updates its respective connections to the hidden nodes, correcting potential miscalculations in the weight adjustments during training.1 parent 23dda53 commit 50f7929
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
133 | | - | |
134 | | - | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
135 | 136 | | |
136 | 137 | | |
137 | 138 | | |
| |||
0 commit comments