sgd first pass of neural net