Backprop Golf

Learn gradient descent by optimizing your golf shot

Hole 1/6 · Iter 0
loss --
dist --
θ 0.0°
F 8.0
lr 0.001
Force θ (degrees)
How to test gradient implementations

Backprop Golf

Learn Backpropagation Through Mini Golf

Choose an angle and force to hit the ball. After each shot, backpropagation asks: if the final miss had been a bit smaller, what tiny changes to the initial shot would have caused that? It works backward through the trajectory to compute the gradient. Following the gradient improves your shot locally — but it won’t always find the best solution. Can you tell when it gets stuck?