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)
Calculates the cost of the network for the specified inputs.  Child classes should
dataset/ETHPy150Open bbabenko/simple_convnet/simple_convnet/convnet.py/NNet.cost