4 ms·
derivative of sigmoid is wrong. should be sigmoid(x)*(1 - sigmoid(x))
by qmmm 11y ago
derivative of sigmoid is wrong. should be sigmoid(x)*(1 - sigmoid(x))
- zodiac 11y agoIt 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.
- williamtrask 11y agoCorrect. I believe most implementations do it this way for efficiency... but my naming could be better.