(self, X, GT=None, sort_reconstr=False, compute_loss=True)
Use AE to reconstruct given data.
        GT will be used to measure the loss (e.g., if X is a noisy version of the GT)
Use AE to reconstruct given data.
        GT will be used to measure the loss (e.g., if X is a noisy version of the GT)
Use AE to reconstruct given data . GT will be used to measure the loss ( e . g . if X is a noisy version of the GT )
def reconstruct(self, X, GT=None, sort_reconstr=False, compute_loss=True):
        """Use AE to reconstruct given data.
        GT will be used to measure the loss (e.g., if X is a noisy version of the GT)"""
        if compute_loss:
            loss = self.loss
        else:
            loss = self.no_op

        if sort_reconstr:
            x_reconstr = self.x_reconstr_sorted
        else:
            x_reconstr = self.x_reconstr

        if GT is None:
            return self.sess.run((x_reconstr, loss), feed_dict={self.x: X})
        else:
            return self.sess.run((x_reconstr, loss), feed_dict={self.x: X, self.gt: GT})
def reconstruct ( self , X , GT = None , sort_reconstr = False , compute_loss = True ) : if compute_loss : loss = self . loss else : loss = self . no_op if sort_reconstr : x_reconstr = self . x_reconstr_sorted else : x_reconstr = self . x_reconstr if GT is None : return self . sess . run ( ( x_reconstr , loss ) , feed_dict = { self . x : X } ) else : return self . sess . run ( ( x_reconstr , loss ) , feed_dict = { self . x : X , self . gt : GT } )