Given the trajectory-level GRPO advantage A_seq, per-turn weights w of shape (K,), and mixing coefficient lam (λ), compute the reshaped turn advantages
A~k=Aseq[(1−λ)+λwk].
Implement reshape_turn_advantages(A_seq, w, lam=0.5) returning a NumPy array of shape (K,).
- λ=0 recovers pure GRPO (A~k=Aseq)
- λ=1 uses the belief weights alone (still sign-preserving when w>0)
- Paper default λ=0.5