Lecture 16 · Soft-margin classification

What does C buy us?

Explore the tradeoff between a small weight norm and costly margin violations.

slack variableshinge lossregularization tradeoff
Predict first: if a mislabeled outlier appears deep inside the opposite class, should the classifier sacrifice its margin to classify it correctly?

Violation penalty

Margin width
Violations
Errors

  1. Small C: violations are relatively cheap.
  2. Large C: violations become expensive.
  3. Watch whether training error and margin width necessarily improve together.