numpy=1.26.3 torch=2.3.1+cu118 device=cpu dtype=float64
GD step=1 theta=[1.1, -1.9] loss=7.250000000
GD step=5 theta=[0.100656875, -1.547561875] loss=1.243067008
GD step=20 theta=[1.2832e-05, -0.716971845] loss=0.257024314
GD all20steps_match_torch=True
Momentum step=1 theta=[1.1, -1.9] loss=7.250000000
Momentum step=5 theta=[-1.280393125, -0.834311875] loss=7.725367648
Momentum step=20 theta=[-0.116131553, 0.242261052] loss=0.090034628
Momentum all20steps_match_torch=True
Adam step=1 theta=[1.95, -1.95] loss=19.012500001
Adam step=5 theta=[1.750633765, -1.750633766] loss=15.323592891
Adam step=20 theta=[1.040185401, -1.040185406] loss=5.409928348
Adam all20steps_match_torch=True
per_example_gradients_at_theta0= [1.0, -1.0]
full_batch_gradient_at_theta0= 0.0
scope=equal raw learning rate is not a tuned fairness benchmark; full-batch paths only
