Skip to content

Instantly share code, notes, and snippets.

@mempirate
Created March 27, 2018 14:43
Show Gist options
  • Save mempirate/960278c354943c6b9eefb21ad8315e2f to your computer and use it in GitHub Desktop.
Save mempirate/960278c354943c6b9eefb21ad8315e2f to your computer and use it in GitHub Desktop.
# Input matrix
training_inputs = np.array([[0,0,1],
[1,1,1],
[1,0,1],
[0,1,1]])
# Output array (transposed)
training_outputs = np.array([[0,1,1,0]]).T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment