seniorSupervised Learning
What is Support Vector Machine (SVM) and how does it work?
Updated May 17, 2026
Short answer
SVM is a supervised learning algorithm that finds the optimal hyperplane separating classes with maximum margin.
Deep explanation
Support Vector Machines aim to find a decision boundary (hyperplane) that maximizes the margin between classes. The closest points to the hyperplane are called support vectors, and they define the boundary. For non-linearly separable data, kernel functions (like RBF, polynomial) transform data into higher dimensions where separation becomes possible. SVM is highly effective in high-dimensional spaces and works well even with smaller datasets.
Real-world example
Text classification tasks like sentiment analysis where features are high-dimensional TF-IDF vectors.
Common mistakes
- Ignoring feature scaling, which heavily impacts SVM performance.
Follow-up questions
- What is the kernel trick?
- Why are support vectors important?