I\'m creating a neural network using the backpropagation technique for learning.
I understand we need to find the derivative of the activation function used. I\'m using
The two ways of doing it are equivalent (since mathematical functions don't have side-effects and always return the same input for a given output), so you might as well do it the (faster) second way.