All glossary terms
techniquesintermediate

Loss Function

A mathematical function that measures the difference between predicted and actual values, guiding model training.

In more detail

The loss function quantifies prediction error. During training, the model minimizes loss to improve accuracy. Different tasks use different loss functions: cross-entropy for classification, MSE for regression, contrastive loss for metric learning.

Examples

  • Cross-entropy loss for classification
  • Mean Squared Error (MSE) for regression
  • Contrastive loss for embeddings
  • Focal loss for imbalanced data

Related terms

Professional AI/ML Bootcamp · Starts 2nd January, 2027

Ready to Build Production AI Systems?

Join a small cohort learning directly from an engineer who's shipped AI at Atlassian and PhonePe scale.

20 weeks · Weekend live classes · 1:1 mentorship · 20+ projects.

20 Weeks

Live Weekend Classes

< 30 Seats

Small Batch

Batch Full

Next Soon

Get priority access

7-Day

Money-Back Guarantee

Taught by Debasish Maji · Senior AI Engineer · Ex-Atlassian (Rovo Agent) · Ex-PhonePe (550M+ users)

Get notified when the next batch opens + free AI resources