Loss function — A loss function measures how wrong a model’s predictions are during training. Training works by changing the model’s parameters to make the loss smaller. Different tasks use different loss functions. The choice of loss function shapes what the model learns to prioritize.
Added October 21, 2026

