AI Dictionary › Fondamenti AI

Loss Function

Funzione di perdita

The loss function is the numerical measure of how far a model's predictions stray from the correct answers. It returns a high value when the model is very wrong and a low one when it's close: it's the compass guiding all learning. Think of a teacher assigning an error score to each assignment: the student-model's goal is to lower that score lesson after lesson. Different forms suit different tasks: mean squared error for predicting numbers, cross-entropy for classification and next-token prediction. The loss value is then differentiated by backpropagation to figure out how to adjust parameters.

Definition

Choosing the loss function defines what 'doing well' actually means for the model. A poorly designed loss can push training toward unwanted behavior, while a well-calibrated one aligns optimization with the real goal.

Related terms

More in Fondamenti AI

Put it into practice

From our network

Kaimaki Web: Websites That Win Customers

Custom websites, web apps and digital marketing for growing businesses.

Visit kaimakiweb.com →

From the Agora Intelligence blog

More on agora-intelligence.com →

📱 Download the Android app (beta) iOS coming soon

Say what you mean. Get what you need.

Grace Certified, the AI coach that trains and certifies your prompt engineering, by Agora Intelligence.