Skip to content

Instantly share code, notes, and snippets.

@Mehdi-Amine
Last active April 25, 2020 14:16
Show Gist options
  • Save Mehdi-Amine/7b423888d4c5401d6d0c786b503d22b3 to your computer and use it in GitHub Desktop.
Save Mehdi-Amine/7b423888d4c5401d6d0c786b503d22b3 to your computer and use it in GitHub Desktop.
def sigmoid_prime(z):
sig = sigmoid(z)
return sig * (1 - sig)
delta = cost_derivative(activation, y) * sigmoid_prime(z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment