Derivative of sigmoid

前端 未结 4 706
闹比i
闹比i 2021-02-02 11:00

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

4条回答
  •  灰色年华
    2021-02-02 11:49

    A little algebra can simplify this so that you don't have to have df call f.
    df = exp(-x)/(1+exp(-x))^2

    derivation:

    df = 1/(1+e^-x) * (1 - (1/(1+e^-x)))
    df = 1/(1+e^-x) * (1+e^-x - 1)/(1+e^-x)
    df = 1/(1+e^-x) * (e^-x)/(1+e^-x)
    df = (e^-x)/(1+e^-x)^2
    

提交回复
热议问题