(self, x, W, b_prime, b)
return loss
Runs EBM for time step and returns reconstruction error.
        1-layer implementation, TODO: implement and test deep structure
Runs EBM for time step and returns reconstruction error.
        1-layer implementation, TODO: implement and test deep structure
Runs EBM for time step and returns reconstruction error . 1 - layer implementation TODO : implement and test deep structure
def _run_ebm(self, x, W, b_prime, b):
        """ Runs EBM for time step and returns reconstruction error.
        1-layer implementation, TODO: implement and test deep structure
        """
        x = tf.transpose(x)  # For batch processing

        forward = tf.matmul(tf.transpose(W), x) + b
        reconstruction = tf.matmul(W, tf.sigmoid(forward)) + b_prime
        loss = tf.reduce_sum(tf.square(x - reconstruction))
        return loss
def _run_ebm ( self , x , W , b_prime , b ) : x = tf . transpose ( x ) # For batch processing forward = tf . matmul ( tf . transpose ( W ) , x ) + b reconstruction = tf . matmul ( W , tf . sigmoid ( forward ) ) + b_prime loss = tf . reduce_sum ( tf . square ( x - reconstruction ) ) return loss