Created
December 1, 2020 04:39
-
-
Save angadsinghsandhu/5d6f5b2d8e8cedd482d08f33d4d562f0 to your computer and use it in GitHub Desktop.
the sigmoid squashing function
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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