Skip to content

Add GAE(lambda) advantage estimation - #80

Merged
rohanpsingh merged 2 commits into
mainfrom
dev/gae
Apr 28, 2026
Merged

Add GAE(lambda) advantage estimation#80
rohanpsingh merged 2 commits into
mainfrom
dev/gae

Conversation

@rohanpsingh

Copy link
Copy Markdown
Owner

Replace Monte Carlo discounted returns in PPOBuffer.finish_path with GAE returns: A_t = sum_k (gamma*lam)^k * delta_{t+k}, returns = A_t + V(s_t).

Wires --lam (default 0.95) through CLI -> PPO -> worker -> PPOBuffer.

Verified: lam=1.0 reproduces MC returns, lam=0.0 reproduces TD(0).

Replace Monte Carlo discounted returns in PPOBuffer.finish_path with GAE
returns: A_t = sum_k (gamma*lam)^k * delta_{t+k}, returns = A_t + V(s_t).

Wires --lam (default 0.95) through CLI -> PPO -> worker -> PPOBuffer.

Verified: lam=1.0 reproduces MC returns, lam=0.0 reproduces TD(0).
@rohanpsingh
rohanpsingh marked this pull request as ready for review April 28, 2026 12:56
@rohanpsingh
rohanpsingh enabled auto-merge (squash) April 28, 2026 12:56
@rohanpsingh
rohanpsingh merged commit 21e9049 into main Apr 28, 2026
2 checks passed
@rohanpsingh
rohanpsingh deleted the dev/gae branch April 28, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant