Created
September 28, 2021 11:30
-
-
Save youben11/1dd1c3aaded0796b7a3defaabaf0f806 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
weights = np.array([0.1, 0.2, 0.3, 0.4, 0.5]) | |
bias = np.array([0.1]) | |
def sigmoid(x): | |
return 1 / (1 + np.exp(-x)) | |
def func(x): | |
return sigmoid(np.dot(x, weights) + bias) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment