def cost(self, x, y=None, final_acts=None):
        if final_acts is None:
            final_acts = self.forward(x)[-1]
        return self._cost(final_acts, y)
Return decorator that adds a magic option to a function.
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/NNet.cost--crossover with--dataset/ETHPy150Open Calysto/metakernel/metakernel/magic.py/option