Skip to content
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

issue about RPPO #156

Closed
tingtingLiuLiu opened this issue Feb 18, 2023 · 1 comment
Closed

issue about RPPO #156

tingtingLiuLiu opened this issue Feb 18, 2023 · 1 comment
Labels
question Further information is requested

Comments

@tingtingLiuLiu
Copy link

Hello, when the LSTM network is used as the basic unit, the environmental state transition model is used for sampling, and the state sequence of t steps consecutive moments is used as the input of the network (s1,..., st).
How does Recurrent ppo set this value? Can you tell me the code location?
Thanks

@araffin araffin added the question Further information is requested label Feb 18, 2023
@araffin
Copy link
Member

araffin commented Feb 18, 2023

the environmental state transition model is used for sampling, and the state sequence of t steps consecutive moments is used as the input of the network (s1,..., st).

you mean where do we create sequences of observations/actions to update the network?
this is done in the buffer: https://github.com/Stable-Baselines-Team/stable-baselines3-contrib/blob/master/sb3_contrib/common/recurrent/buffers.py#L25 (the code is complex to have a fixed mini-batch size without constrain on the number of envs/steps)

there is a simpler version available in #118 but with variable batch size.

@araffin araffin closed this as completed May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants