Loss function
Also: Verlustfunktion · Kostenfunktion
A formula that measures how far a model’s prediction is from the desired result.
The loss function produces a number for every prediction: the smaller, the better. The goal of training is to minimise this value across all training data.
The choice of loss function determines what the model considers “important”. For language models, for example, it measures how well the actual next token was predicted.
General information, not legal or professional advice.
