Skip to content

Instantly share code, notes, and snippets.

Last active October 19, 2018 17:35
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
self._num_iter = number_of_iterations
self._visible_biases = tf.Variable(tf.random_uniform([1, visible_dim], 0, 1, name = "visible_biases"))
self._hidden_biases = tf.Variable(tf.random_uniform([1, hidden_dim], 0, 1, name = "hidden_biases"))
self._hidden_states = tf.Variable(tf.zeros([1, hidden_dim], tf.float32, name = "hidden_biases"))
self._visible_cdstates = tf.Variable(tf.zeros([1, visible_dim], tf.float32, name = "visible_biases"))
self._hidden_cdstates = tf.Variable(tf.zeros([1, hidden_dim], tf.float32, name = "hidden_biases"))
self._weights = tf.Variable(tf.random_normal([visible_dim, hidden_dim], 0.01), name="weights")
self._leraning_rate = tf.Variable(tf.fill([visible_dim, hidden_dim], learning_rate), name = "learning_rate")
self._input_sample = tf.placeholder(tf.float32, [visible_dim], name = "input_sample")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment