Efficient mini-batch training for stochastic optimization | Synapse