What is a loss function in AI optimization?

Reviewed by Jason Burns, Editorial Steward · Last updated

A loss function is a scalar function that measures how far a model's predictions are from the desired outputs on the training data; the training process adjusts model parameters to minimize this loss.