Support Vector Machine (SVM)

Support Vector Machine (SVM) separates two classes by drawing a line that has maximize distance with the closest points. The plane being drawn is called hyperplane. SVM works with two steps:

  1. Make lines that separate the two classes.
  2. Choose the most ideal line which indicated by the highest distance to the nearest points.
Support Vector Machine (SVM) Algorithm - Javatpoint in 2020 ...
Source: javatpoints

In SVM, there is a parameter called C that is used to adjust the trade off between: the wide of the margin and the accuracy of the classification. The graphs below shows how the change in different value of C.

https://miro.medium.com/max/1312/0*-_oXIrD3FQUA4YpW.
Source: Statbot

In more simply way, we can say that C is parameter for controlling error.

enter image description here
large margin (lef) and small margin (right)

What about Gamma?

Gamma defines how far the influence of a single training example reaches. Low values -> far , while high value -> close.

High value gamma
Low value gamma

Leave a comment