Policy Gradient CartPole — Evolution Strategies
Watch a linear policy learn to balance an inverted pendulum on a cart from scratch, trained live in the browser with an Evolution-Strategies policy-gradient update — a real advanced reinforcement-learning algorithm, no backend, no pre-trained weights.
A classic reinforcement-learning benchmark, trained live: a linear policy network reads the pole's angle and the cart's position/velocity and outputs a push force, and instead of hand-coded rules or table-based Q-learning it is trained purely from trial and reward using Evolution Strategies — sampling weight perturbations, running an episode with each, and nudging the weights toward whichever perturbations balanced the pole longest. Watch the pole go from falling almost immediately to staying upright for the full episode over a few dozen generations, adjust the learning rate and exploration noise to see the classic RL stability/exploration trade-off, and read the actual weight vector and gradient-update formula driving it.
Watch a linear policy network learn to balance an inverted pendulum on a cart from scratch, trained live in the browser with a real Evolution-Strategies policy-gradient update instead of table-based Q-learning.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install