Skip to content

Instantly share code, notes, and snippets.

@angadsinghsandhu
Created December 1, 2020 05:14
Show Gist options
  • Save angadsinghsandhu/83d6b799e185de7a6c7e9a23d3b5fd28 to your computer and use it in GitHub Desktop.
Save angadsinghsandhu/83d6b799e185de7a6c7e9a23d3b5fd28 to your computer and use it in GitHub Desktop.
Derivative of the sigmoid squashing function
# activation function derrivative
def d_sigmoid(self, z):
eta = self.sigmoid(z)
return eta * (1 - eta)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment