Skip to content

A question about R_batch[-1,0] #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lwz339 opened this issue Apr 6, 2025 · 0 comments
Closed

A question about R_batch[-1,0] #35

lwz339 opened this issue Apr 6, 2025 · 0 comments

Comments

@lwz339
Copy link

lwz339 commented Apr 6, 2025

Hi,bro!
I am sorry to bother you again.
For the terminal state,you use two different versions:
if terminal: # in this case, the terminal reward will be assigned as r_batch[-1] R_batch[-1] = r_batch[-1] # terminal state
and
if terminal: R_batch[-1, 0] = 0 # terminal state.
I think the first one in line with my understanding.Why the R of terminal state equal to zero in your tf version and vanilla-Pensieve?
Thank your very much!

@lwz339 lwz339 closed this as completed Apr 17, 2025
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

No branches or pull requests

1 participant