Skip to content

Instantly share code, notes, and snippets.

@miloharper
Created July 20, 2015 12:49
Show Gist options
  • Save miloharper/b8220a5b3acb27728c4d to your computer and use it in GitHub Desktop.
Save miloharper/b8220a5b3acb27728c4d to your computer and use it in GitHub Desktop.
How to express the training set as a matrix in Python.
training_set_inputs = array([[0, 0, 1], [1, 1, 1], [1, 0, 1], [0, 1, 1]])
training_set_outputs = array([[0, 1, 1, 0]]).T
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment