Common Loss Function Definition Example