Created
August 29, 2020 14:57
-
-
Save PyDataBlog/f6787de72587235de7303eeb6e95677e to your computer and use it in GitHub Desktop.
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
| """ | |
| Sigmoid activation function | |
| """ | |
| function sigmoid(Z) | |
| A = 1 ./ (1 .+ exp.(.-Z)) | |
| return (A = A, Z = Z) | |
| end | |
| """ | |
| ReLU activation function | |
| """ | |
| function relu(Z) | |
| A = max.(0, Z) | |
| return (A = A, Z = Z) | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment