The Kernel Trick: Lifting Data Into a Separable Dimension
Watch a non-linearly-separable 2D dataset — concentric circles or an XOR grid — get lifted into 3D feature space by an explicit kernel feature map until a single flat plane separates the classes perfectly.
Concentric circles and XOR-style quadrants are the textbook examples of data that no straight line can separate in two dimensions — yet a single flat plane separates them perfectly once each point is lifted into a third, feature-space coordinate. This simulator renders that lift in real 3D: drag the Lift slider and watch a tangled 2D scatter rise into a paraboloid bowl or a tilted saddle as the explicit feature map z = γ(x₁²+x₂²) or z = γ·x₁·x₂ is applied, adjust the kernel coefficient γ to control how sharply the surface curves, and move (or auto-fit) a decision plane to see the accuracy and misclassification counters update live — the same geometric idea that lets a kernel SVM draw a curved boundary in the original space by finding a straight one in a higher-dimensional feature space it never has to build explicitly.
Watch a non-linearly-separable 2D dataset — concentric circles or an XOR grid — get lifted into 3D feature space by an explicit kernel feature map until a single flat plane separates the classes perfectly.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install