AI engineering glossary · Classical ML algorithms

What is soft margin?

Soft margin (also called C parameter): A relaxation that lets a margin-based classifier make some mistakes or let points fall inside the gap, in return for a wider margin. The parameter C controls the trade-off: small C tolerates more violations, large C punishes them heavily.

Level: intermediateTopic: Classical ML algorithms

Soft margin: an example

SVC(C=0.1) permits many margin violations and gives a smoother boundary; SVC(C=1000) fits training data tightly.

Related terms

More Classical ML algorithms terms

Where you learn it

Soft margin is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.