Convert the loss functions into classes, defining their derivatives.
Convert the loss functions into classes, defining their derivatives.