Clustering for More Effective Model Training