This section explains the math behind the derivative of the sigmoid function along with the logic to create the derivative of the sigmoid function with Python.
- The neural network will require the derivative of the sigmoid function to predict an accurate output for gender. The derivative of the sigmoid function is calculated using the following formula:
- We can then create the derivative of the sigmoid function, sigmoid_derivate(), using the original sigmoid function, sigmoid(), in Python. We can plot both functions side by side as seen in the following screenshot:
- Sigmoid Derivative tracks the slope of the original Sigmoid ...