Created
October 16, 2021 20:08
-
-
Save Saransh-cpp/0a8a6e0a649c43c630ae4ba62fce3774 to your computer and use it in GitHub Desktop.
Sigmoid 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
def sigmoid(self, z): | |
""" | |
Returns sigmoid value. | |
""" | |
return 1 / (1 + np.exp(-z)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment