In the week 2 assignment titled βpython basics with numpyβ, when defining sigmoid_derivative function, the derivate is defined with below formula
π ππππππ_πππππ£ππ‘ππ£π(π₯)=πβ²(π₯)=π(π₯)(1βπ(π₯))
I am unable to understand:
- This derivate is measuring rate of change of βxβ w.r.t what? Derivate
- How is the this formula derived.
\sigma(x) = \frac{1}{1+e^{-x}}
\sigma^\prime(x) = \frac{d}{dx}\sigma(x) = \sigma(x)(1-\sigma(x))
Hereβs an image of the derivation I found on the web. Havenβt checked it carefully, but it starts and ends at the right place, so should give you a decent idea of whatβs going onβ¦
The derivative of the function \sigma(x) gives the rate of change of the output of the function w.r.t. the input variable x. Ai_curious has given you the derivation. Just googling βsigmoid derivativeβ will get you plenty more.
1 Like