Last active
March 11, 2017 16:41
-
-
Save RahulBhalley/c449df16b33c840de148174bdeea2e34 to your computer and use it in GitHub Desktop.
XOR gate solution to my post @ https://rahulbhalley.github.io/posts/2017-02/neural-networks-explained.html
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
import tensorflow as tf | |
# 1st layer hyperparameters of our network | |
X = tf.Variable([[0, 0], [0, 1], [1, 0], [1, 1]]) # inputs where the rows correspond to a single input. | |
W = tf.Variable([[1, 1], [1, 1]]) # weights between hidden layer and input layer. | |
c = tf.Variable([[0], [-1]]) # biases for hidden units. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment