Key loss functions for machine learning success