PPolySim OS

SVM Maximum Margin

Many lines separate two classes, but only one is best. A support vector machine finds the boundary with the widest safety margin.

SVM Maximum MarginLive

Controls

Presets

A support vector machine picks the separating line with the widest margin to the nearest points of each class — the support vectors. A fatter margin generalizes better to new data. Try to hand-tune the line to maximize the dashed gap. Educational tool.

▶ Run in Python

Data Inspector

Margin width0.000
Separates classes?no — misclassified

Governing equation

Reading this result: This orientation misclassifies at least one point, so the margin is meaningless until the two classes are cleanly separated first.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →
★ Sign in to save this setup
Save your tuned setup, or drop this simulation into your own site, docs, or course page.

How it works

An SVM chooses the separating hyperplane that maximizes the distance to the nearest points of each class — the support vectors. A wider margin generalizes better to unseen data. Try tilting and shifting the line to open the widest possible gap. Educational tool.

Ask the AI about this model

The math, the assumptions, real-world uses, or a code translation — explained for this exact simulation.

More CS / AI simulations

Frequently asked questions

Is this svm margin simulator tool really free?
Yes. SVM Maximum Margin runs entirely in your browser using your device's own compute, so local use is free forever. You only pay Compute Tokens if you scale a job to the cloud.
Do I need to install anything?
No. Everything runs client-side in a modern browser — no downloads, no license, no account required to start.
Can I save or share my simulation?
Create a free account to save projects, and use a shareable embed or minted DOI to publish a live, interactive version anywhere.
How accurate are the results?
The solver uses established numerical methods, but results are for research and educational purposes and should be validated against experiment or professional review before you rely on them.