Created
May 22, 2016 22:05
-
-
Save amacgregor/aaec0a817cec1d97c1d4705e349cc547 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import exp, array, random, dot | |
ts_inputs = array([[0, 0, 0], [0, 0, 1], [0, 1, 1], [1, 0, 1], [1, 1, 1]]) | |
ts_outputs = array([[0, 0, 0, 1, 1]]).T | |
#unknown input | |
un_input = array([1, 0, 0]) | |
# initialize synapse_weights | |
random.seed(1) | |
sy_weights = 2 * random.random((3,1)) - 1 | |
print sy_weights |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment