Cracking The Machine Learning Interview by Nitin Suri

Cracking The Machine Learning Interview by Nitin Suri

Author:Nitin Suri [Suri, Nitin]
Language: eng
Format: azw3, epub
Publisher: Nitin Suri
Published: 2018-12-14T16:00:00+00:00


2 How do you train a Support Vector Machine (SVM)? What about hard SVM and soft SVM?

(6.10)

For hard margin, train the SVM as:

(6.11)

(6.12)

This equation is valid only when the training instances are linearly separable. If they are not, then you cannot use hard margin SVM. In that case, you have to use soft margin SVM where you add a slack variable for penalizing each instance which falls on the other side of the margin. The corresponding equation for soft margin SVM is:

(6.13)

(6.14)



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.