7 ms·
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.
by zodiac 11y ago
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.
- williamtrask 11y agoCorrect. I believe most implementations do it this way for efficiency... but my naming could be better.