def getFreeEnergy(self, data):
    ' return Free Energy from data.\n        :param data: input data of shape num_samples x visible_size\n        :return: Free Energy for each sample: p(x)\n        '
    with tf.Session() as self.tf_session:
        self.tf_saver.restore(self.tf_session, self.model_path)
        batch_FE = self.tf_session.run(self.batch_free_energy, feed_dict=self._create_feed_dict(data))
        return batch_FE
return Free Energy from data.
:param data: input data of shape num_samples x visible_size
:return: Free Energy for each sample: p(x)
def getFreeEnergy(self, data):
    ' return Free Energy from data.\n        :param data: input data of shape num_samples x visible_size\n        :return: Free Energy for each sample: p(x)\n        '
    with tf.Session() as self.tf_session:
        self.tf_saver.restore(self.tf_session, self.model_path)
        batch_FE = self.tf_session.run(self.batch_free_energy, feed_dict=self._create_feed_dict(data))
        return batch_FE