Skip to content

Instantly share code, notes, and snippets.

@mempirate
Created March 27, 2018 14:45
Show Gist options
  • Save mempirate/0009c3bc208b69c87d3d050815f79b31 to your computer and use it in GitHub Desktop.
Save mempirate/0009c3bc208b69c87d3d050815f79b31 to your computer and use it in GitHub Desktop.
# Set seed for pseudo-randomness
np.random.seed(1)
# Initialize synaptic weights randomly from -1 to 1 with 0 as the mean
synaptic_weights = 2 * np.random.random((3, 1)) - 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment