fixed neural network prediction for mini-batches