Skip to content

Instantly share code, notes, and snippets.

@angadsinghsandhu
Created December 1, 2020 04:39
Show Gist options
  • Save angadsinghsandhu/5d6f5b2d8e8cedd482d08f33d4d562f0 to your computer and use it in GitHub Desktop.
Save angadsinghsandhu/5d6f5b2d8e8cedd482d08f33d4d562f0 to your computer and use it in GitHub Desktop.
the sigmoid squashing function
# activation function
def sigmoid(self, x):
return 1 / (1 + np.exp(-x))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment