Introduction

Core Concept

The score of the correct class should be higher than all the other incorrect classes

Explanation

Let be the score

then the loss is defined by

note: mean the score of training sample for label


Problems & Answers to SVM

Q1: What happen when the scores for an image change a bit? A1: If the score of the correct label is already much larger than incorrect labels’ scores, then the loss will stay 0

Q2: If all the scores were random, what do we expect? A2: thus and where is number of labels

Q3: What if we make A3: will add a constant

Q4: What if we use mean instead of sum when calculating the loss A4: The loss will be lower and the update to hyperparameters in linear classifier will be slighter