Open buffalozz opened 6 years ago
I had the same question. should derivative be rather : exp(x) / (exp(x)+1) ^2
You are getting confused between x and y. If y=sigmoid(x) then the derivative is y.(1-y)
if you plot these functions, y= 1 / (1 + exp(-x)) y = x * (1-x)
It becomes obvious than the second one is not the derivative of the first one.
if you plot these functions,
y= 1 / (1 + exp(-x)) y = x * (1-x) It becomes obvious than the second one is not the derivative of the first one.
Nicolas. Please read carefully what I wrote. I did not say that y' = x * (1-x) I said that y' = y. (1-y)
We are using __sigmoid as 1 / (1 + exp(-x)), and the derivative of that is obviously not x * (1 - x). Is there anything that I missed?