A survey and taxonomy of loss functions in machine learning