An investigation for loss functions widely used in machine learning