A Progressive Batching L-BFGS Method for Machine Learning