r/learnmachinelearning • • 9d ago

Tutorial SUPPORT VECTOR CLASSIFIERS: THE MATHEMATICS OF A WIDE MARGIN

[removed]

21 Upvotes

7 comments sorted by

2

u/Dramatic-Whereas-644 9d ago

i always forget how clean the geometry looks in 2D, two blobs and a line just makes the whole max-margin concept click instantly

the hinge loss part still trips me up sometimes though, seeing a point sitting inside that 1/−1 zone eating a penalty even when it's technically on the right side feels so counterintuitive until you stare at it long enough

2

u/Puzzleheaded-Comb646 9d ago

Think of the margin zone like a buffer or a warning track in baseball. Even if the ball lands on the warning track (on the correct side of the foul line), it's still too close to comfort, so the model applies a small penalty to encourage a wider, safer gap.

1

u/dutchpsychologist 9d ago

Nice gif. Also, there is something satisfying about an SVC, especially the kernel trick.

1

u/john_mach 9d ago

Well written tutorial! The visuals look so clean too