Created
November 12, 2017 20:28
-
-
Save victor-iyi/458db43503a2404187950e19f5717a72 to your computer and use it in GitHub Desktop.
Neural Network Basics: Part One (Sigmoid function)
This file contains hidden or 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(Z, prime=False): | |
| if prime: | |
| return Z * (1 - Z) | |
| return 1 / (1 + np.exp(-Z)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment