Last active
October 31, 2020 08:21
-
-
Save ashwanirathee/a4e9e2c441b83f4fd298ea1d4af22819 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