@wraps(Layer.cost)
    def cost(self, Y, Y_hat):
        total = self.kl(Y=Y, Y_hat=Y_hat)

        ave = total.mean()

        return ave
Returns a batch (vector) of
dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/models/mlp.py/Sigmoid.cost