serialization stackoverflow fix

can you just make this:

gradient = (0,1 label) - logistic(inner)