Train a NumPy multilayer perceptron over ordered mini-batches with forward passes, backpropagation, and SGD updates.