Skip to content

Instantly share code, notes, and snippets.

@malaikannan
Last active January 22, 2017 00:18
Show Gist options
  • Save malaikannan/06d2f0ff6d2299068c6d186e0ed7c1f9 to your computer and use it in GitHub Desktop.
Save malaikannan/06d2f0ff6d2299068c6d186e0ed7c1f9 to your computer and use it in GitHub Desktop.
#input dataset 3 columns and 4 rows
x = np.array([[0,0,1],[0,1,1],[1,0,1],[1,1,1]])
#Transposing Y to 4 rows and 1 column
y = np.array([[0,0,1,1]]).T
#for consistency of random seed
#If you are in a relationship, use this to remember your anniversary date.
#As long as your coding and training Deep Learning Models you will never forget your anniversary
np.random.seed(12345)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment