top of page
realcode4you

Implementing Linear SVM and the Center Hyperplane Equation in Machine Learning

The follow python code shows the margin of the linear SVM and the center hyperplane equation, when C=1000


Code Implementation


Output:












The center line equation: 2.20075236*x1+3.79433219*x2+(-2.89777385)

If you change C=1, you get












The center line equation: 1.55560000*x1+1.24440000*x2+(-1.49256075)


Comments


bottom of page