What is the difference between hard margin and soft margin SVM?

Machine Learning Medium

Machine Learning — Medium

What is the difference between hard margin and soft margin SVM?

Key points

  • Hard margin SVM demands no misclassifications
  • Soft margin SVM permits some violations with penalty parameter C
  • C controls trade-off between margin size and misclassification
  • Hard margin requires perfect linear separability
  • Soft margin allows for more flexibility in classification

Ready to go further?

Related questions