massOfai

Loss Function

AI/ML Fundamentals

Measures how wrong predictions are

What is Loss Function?

Quantifies error between predicted and actual values. Training aims to minimize this.

Real-World Examples

  • Mean Squared Error for regression
  • Cross-entropy for classification
  • Binary cross-entropy

When to Use This

Every supervised learning model needs a loss function