December 2017
Intermediate to advanced
536 pages
14h 23m
English
We proceed with the recipe as follows:
import tensorflow as tfimport numpy as npfrom tensorflow.examples.tutorials.mnist import input_dataimport matplotlib.pyplot as plt%matplotlib inline
class RBM(object): def __init__(self, m, n): """ m: Number of neurons in visible layer n: number of neurons in hidden layer """ self._m = m self._n = n # Create the Computational graph # Weights and biases self._W = tf.Variable(tf.random_normal(shape=(self._m,self._n))) self._c = tf.Variable(np.zeros(self._n).astype(np.float32)) ...
Read now
Unlock full access