def energy(self, mat):
        """
        .. todo::

            WRITEME
        """
        x = mat[:, 0]
        y = mat[:, 1]
        rval = (y - N.cos(x)) ** 2. / (2. * (self.std ** 2.))
        return rval
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/datasets/cos_dataset.py/CosDataset.energy/original