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

Feature/actions as obs #291

Merged
merged 14 commits into from
May 27, 2024
Merged

Feature/actions as obs #291

merged 14 commits into from
May 27, 2024

Conversation

michele-milesi
Copy link
Member

Summary

Describe the purpose of the pull request, including:

  • Add ActionsAsObservationWrapper. The wrapper takes in input the number of the last actions to add to the observations and the dilation to use. It works as the FrameStack wrapper.
  • Diambra environments do not use this wrapper, the library already provides a wrapper for adding the last n actions to the observations.

Type of Change

Please select the one relevant option below:

  • New feature (non-breaking change that adds functionality)

Checklist

Please confirm that the following tasks have been completed:

  • I have tested my changes locally and they work as expected. (Please describe the tests you performed.)
  • I have added unit tests for my changes, or updated existing tests if necessary.
  • I have updated the documentation, if applicable.
  • I have installed pre-commit and run locally for my code changes.

sheeprl/envs/wrappers.py Outdated Show resolved Hide resolved
sheeprl/utils/env.py Outdated Show resolved Hide resolved
@michele-milesi michele-milesi merged commit 878620a into main May 27, 2024
12 checks passed
@belerico belerico deleted the feature/actions-as-obs branch June 18, 2024 12:11
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.

Last N actions as mlp_keys encoder input for dreamer_v3
2 participants