Goal-Oriented Machine Learning Training