Last active
April 22, 2020 12:27
-
-
Save Mehdi-Amine/2f3b395347a0fa2c709408cfd5139a77 to your computer and use it in GitHub Desktop.
Randomly generating the parameters of a perceptron
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 | |
bias = np.random.randn(1, 1) | |
weights = np.random.randn(input_length, 1) # for some integer input_length |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment