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

Add DiscreteAction wrapper #24

Merged
merged 2 commits into from
Aug 8, 2023
Merged

Add DiscreteAction wrapper #24

merged 2 commits into from
Aug 8, 2023

Conversation

smorad
Copy link
Collaborator

@smorad smorad commented Aug 8, 2023

This commit adds the DiscreteAction wrapper. This will flatten a MultiDiscrete action space returned by the Flatten wrapper into a single (possibly very large) Discrete space. This should be very useful when applying DQN-based methods to POPGym. Through DiscreteAction(Flatten(env)) the users should be able to run recurrent DQN on all the envs (except for pendulum) out of the box.

@smorad smorad merged commit f70e824 into master Aug 8, 2023
2 checks passed
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