A Data-Centric Optimization Framework for Machine Learning