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 lessonRelated terms
- Support vectors: The few points right at the edge of the margin. They decide where the line goes.
- Kernel trick: A shortcut that lets a model separate data as if it had been lifted into extra…