Training, Regularization, and Optimization