Re:A Neural Network in 11 Lines of Python
by zodiac on Monday March 28, 2016 @08:21PM
(#11378617)
It seems like when he passes deriv=True in line 36 the first argument is the output of a previous nonlin, so it actually is the correct derivative.
[ Parent
| on HN ]
Re:A Neural Network in 11 Lines of Python
by williamtrask on Monday March 28, 2016 @08:28PM
(#11378658)
Correct. I believe most implementations do it this way for efficiency... but my naming could be better.