Raw (unscaled) StandardScaler MinMaxScaler RobustScaler
drag to pan · scroll to zoom

Feature Scaling Lab 2D: Gradient Descent Race Track

This is the top-down companion to the 3D Feature Scaling Lab: the same synthetic dataset (income and age predicting an outcome) runs through the same four lanes — raw and unscaled, StandardScaler (z-score), MinMaxScaler (0–1 range) and RobustScaler (median/IQR) — each fitting an identical linear model with plain gradient descent at one shared learning rate. Instead of orbiting a 3D scene, you pan and zoom a flat race track: each lane's scatter shows the two features plotted against each other to scale, and a vertical "loss tower" behind it rises with log-loss exactly as the raw lane's tower shoots up and flashes red while the scaled lanes stay low and steady. Inject a single extreme outlier to watch StandardScaler and especially MinMaxScaler wobble while RobustScaler's median/IQR math keeps it unmoved.