Index Ai Academy
Glossary · Phase 3 · Machine learning

Margin

The gap between a dividing line and the nearest points on each side. A support vector machine looks for the widest one.

Try it now

Then divide 2 by the result: the street is 2 ÷ 5 = 0.4 wide.

Learn it properly

Support vector machines · The widest margin, support vectors, the hinge loss and C, kernels for curved boundaries, and when an SVM fits. About 40 minutes.

Other terms from the same lesson

  • hinge loss: max(0, 1 - y·score): zero for points safely on their side, growing for points inside the margin or on the wrong side.
  • kernel trick: Replacing dot products with a similarity function so a linear method draws curved boundaries without building new features.
  • support vector: A training point that sits on or inside the margin. Only these points decide where the dividing line goes.
  • support vector machine: A classifier that picks the boundary with the widest margin to the nearest training points of each class.
Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 3 · lesson 40 min

Support vector machines

The widest margin, support vectors, the hinge loss and C, kernels for curved boundaries, and when an SVM fits.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write