Skip to content

Instantly share code, notes, and snippets.

@Mehdi-Amine
Last active April 22, 2020 12:27
Show Gist options
  • Save Mehdi-Amine/2f3b395347a0fa2c709408cfd5139a77 to your computer and use it in GitHub Desktop.
Save Mehdi-Amine/2f3b395347a0fa2c709408cfd5139a77 to your computer and use it in GitHub Desktop.
Randomly generating the parameters of a perceptron
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