machine-learning

Definition

Loss Function

A loss function is a non-negative function that quantifies the discrepancy between the predicted label and the true label . In supervised learning, the objective is to find a hypothesis that minimises the expected loss, also known as the risk. Common examples include:

  • 0-1 Loss: for classification.
  • Squared Loss: for regression.