Shows the ML pipeline as three blocky panels: a dataset (with labels y in supervised mode, no labels in unsupervised), a parameterized model f(x; θ) with learnable parameters, and an empirical risk R(θ) that training minimizes. Animation cycles between supervised and unsupervised, and within each mode it shows θ updating over time while the risk decreases.
Pure Canvas2D, green-on-black retro grid with snapped coordinates for a blocky feel. Time-based animation uses (t/duration)%1 cycles: mode toggles every 3.6s and training progress runs on a 2.6s loop with cubic easing via ease(). Deterministic pseudo-random point placement uses a sine hash for stable visuals without external state.