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

[Question] What actions are expected for a previously terminated sub-env in a vector (next env.step() should return reset obs so the actions shouldn't matter)? #1077

Open
sven1977 opened this issue Jun 4, 2024 · 2 comments
Labels
question Further information is requested

Comments

@sven1977
Copy link

sven1977 commented Jun 4, 2024

Question

Quick question:
In a vector env with say 2 sub-envs (0 and 1).
When I do env.step([action0, action1]) and now sub-env 0 is terminated (returns the final observation), what action would the env expect next for sub-env 0? I would assume that it wouldn't matter, b/c the next env.step([action0, action1]) should return the reset obs for sub-env 0 anyways, correct? So can I pass in any random action?

@sven1977 sven1977 added the question Further information is requested label Jun 4, 2024
@pseudo-rnd-thoughts
Copy link
Member

pseudo-rnd-thoughts commented Jun 4, 2024

Yes, correct the action is ignored so can be any valid action.
We generally assume that the terminated observation is still valid therefore can we treat it like any other observation in terms of action selection (requiring no change) but a random action is a valid alternative approach

@sven1977
Copy link
Author

sven1977 commented Jun 9, 2024

Ok, thanks for clarifying @pseudo-rnd-thoughts !

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