Skip to content

Instantly share code, notes, and snippets.

@guilhermefgs
Created October 26, 2019 21:06
Show Gist options
  • Save guilhermefgs/769d87a17e1059fbf1008a8dfd151928 to your computer and use it in GitHub Desktop.
Save guilhermefgs/769d87a17e1059fbf1008a8dfd151928 to your computer and use it in GitHub Desktop.
sigmoide e sigmoide gradient functions
def sigmoid(z):
return 1/(1 + np.exp(-z))
def sigmoidGrad(z):
return (sigmoid(z))*(1-sigmoid(z))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment