def _cost(self, x, y):
        p_y = self._forward(x)
        return -T.mean(T.log(p_y)[y, T.arange(y.shape[0])])
Registers a sink method for the API.
dataset/ETHPy150Open LxMLS/lxmls-toolkit/lxmls/deep_learning/mlp.py/TheanoMLP._cost--crossover with--dataset/ETHPy150Open falconry/falcon/falcon/api.py/API.add_sink