NumPy allowed · plain Python earns 10 bonus points
θ ← θ − 0.14 · ∂L/∂θ
Implement a single parameter update under Polyak momentum acceleration.
Implement momentum_gd_step(w, grad, v, lr=0.01, beta=0.9): compute v_next = beta * v + lr * grad and w_next = w - v_next. Return {"w": list[float], "v": list[float]} rounded to 4 decimals.
momentum_gd_step(w: list[float], grad: list[float], v: list[float], lr: float = 0.01, beta: float = 0.9) -> dict[str, list[float]]