SVM & Kernels
Q: What is a support vector machine? What is the kernel trick?
- Find the hyperplane that maximizes the margin between classes; only the points on the margin (support vectors) define it. Soft margin (hinge loss + C) tolerates misclassification.
- Kernel trick: replace dot products with
K(x, x')(RBF, polynomial) to separate data in an implicit high-dimensional space without computing it. - Good for medium-sized, high-dimensional data; scales poorly (O(n²–n³)) to millions of samples.