Last active
April 25, 2020 14:15
-
-
Save Mehdi-Amine/0ccd7bc2f565ef9ad1da2ed82d3d1d63 to your computer and use it in GitHub Desktop.
sigmoid function and feedforward algorithm
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
def sigmoid(z): | |
return 1.0 / (1.0 + np.exp(-z)) | |
z = numpy.dot(weights, instance) + bias.squeeze() | |
a = sigmoid(z) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment