Machine Learning & AI
Intermediate
Hinge Loss (SVM)
Loss for support vector machines; zero once a point is correctly classified with margin.
Formula
Variables
yTrue label (-1/+1)
\hat{y}Raw score
Example
y=1, score=1.5: L=0
Did You Know?
Hinge loss only cares about points near or inside the margin — the "support vectors".
Share this formula
More in Machine Learning & AI
View allLinear Regression Model
BasicPredicts a continuous value as a weighted sum of input features plus a bias.
Gradient Descent Update
BasicIteratively moves parameters in the direction that most reduces the loss.
ReLU Activation
BasicRectified Linear Unit: outputs the input if positive, else zero.
Leaky ReLU
BasicA ReLU variant that lets a small gradient flow for negative inputs.
Tanh Activation
BasicSquashes input to the range (-1, 1); zero-centred activation.
Softmax
BasicTurns a vector of scores into a probability distribution that sums to 1.