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