Optimizers for machine learning