Skip to content
StackDecode
AI & ML Atlas
Machine LearningalgorithmAnimated walkthrough

One-Class SVM

Learns a boundary around normal data and flags anything outside it.

The idea

Trained only on normal examples, it finds a boundary (in a kernel feature space) that encloses most of them with the smallest region. A new point outside the boundary is treated as novel. The parameter ν bounds the fraction of training points allowed outside.

Watch it run

The pipeline lights up one step at a time. Use the controls to pause or step through it.

  1. 1Train on data believed to be normal.
  2. 2Map it with a kernel (often RBF).
  3. 3Find the tightest boundary containing most points, controlled by ν.
  4. 4Classify new points as inside (normal) or outside (anomaly).
1/4

Step by step

  1. 1Train on data believed to be normal.
  2. 2Map it with a kernel (often RBF).
  3. 3Find the tightest boundary containing most points, controlled by ν.
  4. 4Classify new points as inside (normal) or outside (anomaly).

Where it is used

Novelty detection when anomalies are not available for training.

Watch out for

Kernel width and ν must be tuned, and it scales poorly with big data.

Related