stochastic learning in neural network