-
Notifications
You must be signed in to change notification settings - Fork 290
Add partial support for dictionary observation spaces (bc, density) #785
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
Merged
Merged
Changes from all commits
Commits
Show all changes
89 commits
Select commit
Hold shift + click to select a range
5182ecf
first pass of dict obs functionality
NixGD 61d816b
cleanup DictObs
NixGD c3331f6
add dict space to test_types.py, fix some problems
NixGD fc9838d
add dict-obs test for rollout
NixGD fb9498b
add bc.py test
NixGD e54c36c
cleanup
NixGD ee04383
small fixes
NixGD 6e2218a
small fixes
NixGD 68fe666
fix type error in interactive.py
NixGD 9ad2aaf
fix introduced error in mce_irl.py
NixGD 67341d5
fix minor ci complaint
NixGD c497b56
add basic dictobs tests
NixGD d3f79bf
change default bc policy for dict obs space
NixGD 2de9e49
refine rollout.py typechecks, comments
NixGD c47cca6
check rollout produces dictobs of correct shape
NixGD 276294b
cleanup types and dictobs helpers
NixGD 071d2a7
clean useless lines
NixGD a2ccd7e
clean up print statements
NixGD 93baa2d
fix typos
NixGD 54f33af
assert matching keys in from_obs_list
NixGD c711abf
move maybe_wrap, clean rollout
NixGD 58a0d70
change policy callable to take dict[str, np.ndarray] not dictobs
NixGD 0f080d4
rollout info wrapper supports dictobs
NixGD c4d3e11
fix from_obs_list key consistency check
NixGD b93294a
xfail save/load tests with dictobs
NixGD 3f17ff2
doc for dictobs wrapper
NixGD 0212e0e
don't error on int observations
NixGD 070ebf9
lint fixes
NixGD 657e17e
cleanup bc test for dict obs
NixGD 1f8c12a
cleanup bc.py unwrapping
NixGD bd70ecd
cleanup rollout.py
NixGD bec464c
cleanup dictobs interface
NixGD bef19e6
small cleanups
NixGD 9aaf73f
coverage fixes, test fix
NixGD 5d6aa77
adjust error types
NixGD 86fbcf1
docstrings for type helpers
NixGD 8d1e0d6
add dict obs space support for density
NixGD 96978d5
fix typos
NixGD e95df9d
Adam suggestions from code review
NixGD 161ec95
small changes for code review
NixGD 90bdf57
fix docstring
NixGD 6aa25ff
remove FloatReward
ZiyueWang25 bf48c76
Merge remote-tracking branch 'origin/master' into support-dict-obs-space
ZiyueWang25 4ce1b57
Fix test_bc
ZiyueWang25 de1b1c8
Turn off GPU finding to avoid using gpu device
ZiyueWang25 1a1a458
Check None to ensure __add__ can work
ZiyueWang25 f7866f4
fix docstring
ZiyueWang25 daa838d
bypass pytype and lint test
ZiyueWang25 803eab0
format with black
ZiyueWang25 0ac6f54
Test dict space in density algo
ZiyueWang25 be9798b
black format
ZiyueWang25 c7e6809
small fix
ZiyueWang25 82fb558
Add DictObs into test_wrappers
ZiyueWang25 03714cc
fix format
ZiyueWang25 187e881
minor fix
ZiyueWang25 ae96521
type and lint fix
ZiyueWang25 535a986
Add policy training test
ZiyueWang25 de027c4
suppress line too long lint check on a line
ZiyueWang25 be79cf5
acts to obs for clarity
ZiyueWang25 6e5c3e8
Add HumanReadableWrapper
ZiyueWang25 ba6a6a7
fix dict env observation space
ZiyueWang25 a9b32bd
adjust wrapper and not set render_mode inside
ZiyueWang25 77eab66
Add additional obs check
AdamGleave 194ec1a
Upgrade pytype and remove workaround for old versions
AdamGleave 44b357e
Fix test_rollout test
AdamGleave ee83ec5
add RemoveHumanReadableWrapper and update ob space
ZiyueWang25 27f9dc8
Revert "add RemoveHumanReadableWrapper and update ob space"
ZiyueWang25 d954fed
Revert "adjust wrapper and not set render_mode inside"
ZiyueWang25 d1131d0
Revert "fix dict env observation space"
ZiyueWang25 31f8887
Revert "Add HumanReadableWrapper"
ZiyueWang25 ae9fa64
Revert "acts to obs for clarity"
ZiyueWang25 3dfafd0
Merge branch 'support-dict-obs-space' of github.com:HumanCompatibleAI…
ZiyueWang25 7a2b7ce
address comments
ZiyueWang25 15541cd
new pytype need input directory or file
ZiyueWang25 6884538
fix np.dtype
ZiyueWang25 5c6e5b8
ignore typed-dict-error
ZiyueWang25 5c1d751
context manager related fix
ZiyueWang25 f5288c6
keep pytype checking more failures
ZiyueWang25 6e94dea
Revert "keep pytype checking more failures"
ZiyueWang25 bb1f9cd
Revert "context manager related fix"
ZiyueWang25 a07ea26
Revert "ignore typed-dict-error"
ZiyueWang25 b2cca2e
Revert "fix np.dtype"
ZiyueWang25 1a24ae5
Revert "new pytype need input directory or file"
ZiyueWang25 b989af8
Revert "Upgrade pytype and remove workaround for old versions"
ZiyueWang25 4817c2f
lint fix
ZiyueWang25 94c3ecf
fix type check
ZiyueWang25 d5d1918
fix lint
ZiyueWang25 4df8f83
Merge branch 'master' of github.com:HumanCompatibleAI/imitation into …
ZiyueWang25 0af3037
Merge branch 'master' of github.com:HumanCompatibleAI/imitation into …
ZiyueWang25 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.