3D Logistic Regression Trainer
Orbit a 3-feature point cloud while a logistic regression classifier trains live: real batch gradient descent on binary cross-entropy loss updates three weights and a bias every step, rotating and sliding an actual separating plane through the data as loss falls.
The same batch gradient descent that trains a 2-D classifier extends directly to a real 3-feature space, and the result is genuinely 3-D geometry: a separating plane, not a line. This simulator scatters two overlapping Gaussian blobs of points through (x₁, x₂, x₃) space, then repeatedly computes the logistic regression model's actual predicted probability for every point, measures the real binary cross-entropy loss, and steps the three weights and bias down their true gradient — rebuilding the decision plane from those weights every epoch so you watch it rotate and slide into place as loss falls. Orbit the camera to see the plane's tilt from any angle, and tune learning rate, L2 regularization, class separation and noise to explore how each shapes convergence.
Explore and train logistic regression in 3D space, visualizing data blobs, separating plane, and live model updates.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install