ML0053 Hinge Loss for SVM

Explain the Hinge Loss function used in SVM.

Answer

The Hinge Loss function is a key element in Support Vector Machines that penalizes both misclassified points and correctly classified points that lie within the decision margin. It assigns zero loss to points that are correctly classified and lie outside or exactly on the margin, and applies a linearly increasing loss as points move closer to or across the decision boundary. This loss structure encourages the SVM to maximize the margin between classes, promoting robust and generalizable decision boundaries.

The Hinge Loss is defined as follows.
 \text{Hinge Loss} = \max(0,\ 1 - y \cdot f(\mathbf{x}))
Where:
 y \in {-1, +1} is the true label,
 f(\mathbf{x}) is the raw model output.

Hinge Loss is plotted in the figure below.

Zero Loss: When  y \cdot f(\mathbf{x}) \ge 1 , meaning the point is correctly classified with margin.
Positive Loss: When  y \cdot f(\mathbf{x}) < 1 , the point is either inside the margin or misclassified.


Login to view more content

Did you solve the problem?

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *