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] Tuple action spaces? #920

Closed
verbose-void opened this issue May 26, 2022 · 1 comment
Closed

[Question] Tuple action spaces? #920

verbose-void opened this issue May 26, 2022 · 1 comment
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@verbose-void
Copy link

i'm writing a custom environment and the action space for which is a tuple of a few different spaces. I was trying to use PPO, and i received the following error:

AssertionError: The algorithm only supports (<class 'gym.spaces.box.Box'>, <class 'gym.spaces.discrete.Discrete'>, <class 'gym.spaces.multi_discrete.MultiDiscrete'>, <class 'gym.spaces.multi_binary.MultiBinary'>) as action spaces but Tuple(Discrete(4), Box([0.], [1.], (1,), float32), Box([0. 0.], [1. 1.], (2,), float32), Box([-0.05 -0.05], [0.05 0.05], (2,), float32)) was provided

are there any algorithms that are ready for tuplized action spaces out the box? if not, do you have an idea for a workaround?

@verbose-void verbose-void added the question Further information is requested label May 26, 2022
@araffin araffin added the duplicate This issue or pull request already exists label May 26, 2022
@araffin
Copy link
Member

araffin commented May 26, 2022

Duplicate of #731 and #527

@araffin araffin closed this as completed May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants