Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4647729

Browse files
jpienaar-tuksJohann
authored andcommitted
DOC Fix time complexity of MLP (#28592)
Co-authored-by: Johann <[email protected]>
1 parent 9bd7047 commit 4647729

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/modules/neural_networks_supervised.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Complexity
229229
Suppose there are :math:`n` training samples, :math:`m` features, :math:`k`
230230
hidden layers, each containing :math:`h` neurons - for simplicity, and :math:`o`
231231
output neurons. The time complexity of backpropagation is
232-
:math:`O(n\cdot m \cdot h^k \cdot o \cdot i)`, where :math:`i` is the number
232+
:math:`O(i \cdot n \cdot (m \cdot h + (k - 1) \cdot h \cdot h + h \cdot o))`, where :math:`i` is the number
233233
of iterations. Since backpropagation has a high time complexity, it is advisable
234234
to start with smaller number of hidden neurons and few hidden layers for
235235
training.

0 commit comments

Comments
 (0)