def get_cost(self, inputs, targets):
        self.outputs[:] = self.costfunc(inputs, targets)
        self.cost[:] = self.be.mean(self.outputs, axis=1)
        return self.cost
Compute the cost function over the inputs and targets.
dataset/ETHPy150Open NervanaSystems/neon/neon/layers/layer.py/GeneralizedCost.get_cost