SVM - hard or soft margins?

后端 未结 2 554
南笙
南笙 2020-12-12 10:57

Given a linearly separable dataset, is it necessarily better to use a a hard margin SVM over a soft-margin SVM?

2条回答
  •  天涯浪人
    2020-12-12 11:27

    In my opinion, Hard Margin SVM overfits to a particular dataset and thus can not generalize. Even in a linearly separable dataset (as shown in the above diagram), outliers well within the boundaries can influence the margin. Soft Margin SVM has more versatility because we have control over choosing the support vectors by tweaking the C.

提交回复
热议问题