def getRecontructError(self, data):
    ' return Reconstruction Error (loss) from data in batch.\n        :param data: input data of shape num_samples x visible_size\n        :return: Reconstruction cost for each sample in the batch\n        '
    with tf.Session() as self.tf_session:
        self.tf_saver.restore(self.tf_session, self.model_path)
        batch_loss = self.tf_session.run(self.batch_cost, feed_dict=self._create_feed_dict(data))
        return batch_loss
return Reconstruction Error (loss) from data in batch.
:param data: input data of shape num_samples x visible_size
:return: Reconstruction cost for each sample in the batch
def getRecontructError(self, data):
    ' return Reconstruction Error (loss) from data in batch.\n        :param data: input data of shape num_samples x visible_size\n        :return: Reconstruction cost for each sample in the batch\n        '
    with tf.Session() as self.tf_session:
        self.tf_saver.restore(self.tf_session, self.model_path)
        batch_loss = self.tf_session.run(self.batch_cost, feed_dict=self._create_feed_dict(data))
        return batch_loss