Last active
June 11, 2017 00:30
-
-
Save erogol/17e6475aa280a79c1cc7653845b58d96 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
def selu(x): | |
alpha = 1.6732632423543772848170429916717 | |
lambdaa = 1.0507009873554804934193349852946 | |
return lambdaa*np.where(x>=0.0, x, alpha*np.exp(x)-alpha) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment