A loss function measures how wrong a model's predictions are compared to the true values. Training minimizes this loss, guiding the model toward better predictions. The choice of loss function shapes what the model learns to optimize.
Loss functions are the feedback signal that enables neural networks to learn from data.