Skip to content

Instantly share code, notes, and snippets.

@RahulBhalley
Last active March 11, 2017 16:41
Show Gist options
  • Save RahulBhalley/c449df16b33c840de148174bdeea2e34 to your computer and use it in GitHub Desktop.
Save RahulBhalley/c449df16b33c840de148174bdeea2e34 to your computer and use it in GitHub Desktop.
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