def cost(self, Y, Y_hat):

        raise NotImplementedError(
            str(type(self)) + " does not implement mlp.Layer.cost.")
The cost of outputting Y_hat when the true output is Y.
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/mlp.py/Layer.cost