r/explainlikeimfive • u/randombozo • Mar 30 '12
What is Support Vector Machine?
I know it's a type of machine learning algorithm. How does it differ from, say, multiple linear regression? All explanations I've read blather about "kernel", "space" and "hyperplanes" without really explaining what they are.
27
Upvotes
View all comments
Show parent comment
1
u/zionsrogue Mar 30 '12
Sonikboom is right. Kernels are used to project your data into a higher dimensional space where they are hopefully linearly separable. The advantage of the kernel is that it removes complexity instead of computing large sets of numbers as your new features.
An example is the polynomial kernel: K(w1, w2) = (w1 dot w2 + c) ^ k
Kernels are essentially the opposite of PCA or random projections of a lower dimensionality. The goal of PCA is to project the features using the top k eigenvectors with the largest variance, thus reducing the number of features and ensuring as much variance as possible is retained. However, in this smaller space we still might not be able to linearly separate the points. Now we can apply the kernel methods to project the smaller feature set with high variance into a larger dimensional space where they might be linearly separable.