Open Agent School · Public worked example
Support vector machine: meaning and example
Welcome! Take one idea with you today.
A support vector machine is a model family that balances a wide separating margin with penalties for margin violations. In a linear binary classifier, the boundary is where a weighted score equals zero.
Picture it: In a one-dimensional toy dataset, value 0 is class -1 and value 2 is class +1. Score x - 1 places the boundary at 1 and gives scores -1 and +1 to the examples. With canonical margin scaling, they sit on the two margin edges.
What is easy to mix up?
Correctly classified points inside the margin also receive positive hinge loss. Classification sign and margin satisfaction are different checks.
Teaching example by Open Agent School. Source: scikit-learn: Support Vector Machines.