Gradient LabSign up free

ML glossary › Margin

What is margin in machine learning?

The empty gap between the dividing line and the nearest points.

Where it shows up

Classification

Support vector machines

A support vector machine picks the line with the most breathing room on both sides, like the middle of the widest possible street between the groups. That gap is the margin. A wide margin leaves room for new points that land a bit off.

See margin in motion. The lesson animates it step by step, free.

Open the lesson

Related terms