Created
March 27, 2018 14:39
-
-
Save mempirate/3496114264a2583e5f66d1e83fe5ff1d to your computer and use it in GitHub Desktop.
This file contains 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
import numpy as np | |
def sigmoid(x): | |
return 1 / (1 + np.exp(-x)) | |
def sigmoid_derivative(x): | |
return x * (x - 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment