← Library · Core concept

Loss Function

A loss function, also known as a cost function, quantifies how poorly an AI model is performing during training. It calculates the difference between the model's predictions and the actual correct outputs for a given dataset. The goal of training is to minimize this loss, guiding the model to make more accurate predictions.

In plain terms

A loss function is like a golf score, telling you how far off your ball landed from the hole.

Why it matters

It provides the essential feedback mechanism that allows AI models to learn and improve over time.

Learn one new AI thing every day.

Daily Deck sends you seven plain-English cards like this every morning. Free.

Start free