Skip to content

Instantly share code, notes, and snippets.

@Saransh-cpp
Created October 16, 2021 20:08
Show Gist options
  • Save Saransh-cpp/0a8a6e0a649c43c630ae4ba62fce3774 to your computer and use it in GitHub Desktop.
Save Saransh-cpp/0a8a6e0a649c43c630ae4ba62fce3774 to your computer and use it in GitHub Desktop.
Sigmoid function
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