A loss measures how wrong predictions are on one example; training minimizes its average (the cost).
Regression: mean squared error (penalizes large errors, sensitive to outliers), mean absolute error (robust), Huber (a mix).
Classification: log loss or cross-entropy for probabilistic outputs, hinge loss for SVMs.
The loss must be differentiable for gradient descent; the evaluation metric (such as F1) may differ from it, so check both.
Loading…