Skip to content

Instantly share code, notes, and snippets.

@ugik
Last active January 21, 2017 00:22
Show Gist options
  • Save ugik/c8f28bb5029b2514ed2e638316b0b6cd to your computer and use it in GitHub Desktop.
Save ugik/c8f28bb5029b2514ed2e638316b0b6cd to your computer and use it in GitHub Desktop.
simple ANN
import numpy
# The training set. We have 4 examples, each consisting of 3 input values
# and 1 output value.
training_set_inputs = array([[0, 0, 1], [1, 1, 1], [1, 0, 1], [0, 1, 0]])
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