-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Saving and loading replay buffer with HDF5 #261
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
Trinkle23897
merged 46 commits into
thu-ml:master
from
nicoguertler:save_load_replay_buffer
Dec 17, 2020
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
be78460
Add saving and loading of replay buffer to/from HDF5 file.
nicoguertler 224328a
Add test for HDF5-based saving of replay buffer.
nicoguertler 72beac7
Also copy size and index.
nicoguertler 6241681
Remove swap files.
nicoguertler 00965d6
Add dependency on h5py.
nicoguertler 5323977
Adapt to PEP8.
nicoguertler 94d5315
Finalize docstrings.
nicoguertler c298790
Add support for Batch and torch.Tensor in saving to HDF5.
nicoguertler 396e9de
Adapt to PEP8.
nicoguertler e96d8d9
Use read_direct even if entry doesn't exist.
nicoguertler f541948
Load replay buffer into numpy arrays by default.
nicoguertler cddf131
Adapt to PEP8.
nicoguertler ff8b112
Version constraint for h5py and execution of test_hdf5 in __main__.
nicoguertler 1bb7ccb
Update test/base/test_buffer.py
nicoguertler c01c2e1
Update tianshou/data/buffer.py
nicoguertler cc87c20
Update tianshou/data/buffer.py
nicoguertler bcd41dd
Update tianshou/data/buffer.py
nicoguertler 2ea6dfd
Update tianshou/data/buffer.py
Trinkle23897 b30ae5b
Add _hdf5 to loading and saving methods.
nicoguertler dda680e
Merge branch 'save_load_replay_buffer' of github.com:nicoguertler/tia…
nicoguertler f655020
Make sure tensor is in main memory before converting to numpy.
nicoguertler 6071cb2
fix test
Trinkle23897 a554ba8
Add HDF5 example to usage code snippet.
nicoguertler eab5b69
Merge branch 'save_load_replay_buffer' of github.com:nicoguertler/tia…
nicoguertler 953f9d9
minor fix
Trinkle23897 36d4754
Merge branch 'save_load_replay_buffer' of github.com:nicoguertler/tia…
Trinkle23897 b9e14aa
test more
Trinkle23897 3443a39
Use __getstate__ for saving via HDF5.
nicoguertler eff1f99
Fix PEP8.
nicoguertler a807128
Fix type hints.
nicoguertler b07b40b
PEP8.
nicoguertler f41a571
Implement fall back to pickle.
nicoguertler 782fef8
Fix formatting.
nicoguertler fcbc5ac
Fix type hints, add tests, clean up.
nicoguertler 4e130ea
PEP8
nicoguertler 7214503
Fix missing import, implement some suggestions.
nicoguertler 07459d9
Exception when saving, use __name__ and more readable unit test.
nicoguertler 801ca14
Fix typo.
nicoguertler ea838d2
fix test
Trinkle23897 335ff26
fix new version of sphinxcontrib-bibtex
Trinkle23897 5b10e98
fix test
Trinkle23897 4173092
add extra test
Trinkle23897 2d45c1a
Fallback to pickle for arrays with data type not supported by HDF5.
nicoguertler a5d4505
Turn into inner function.
nicoguertler 7ccd995
RuntimeError only for ndarrays and not for Tensors.
nicoguertler c4197e9
Only use __class__.__name__ when value unclear in advance.
nicoguertler 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -144,3 +144,4 @@ MUJOCO_LOG.TXT | |
.DS_Store | ||
*.zip | ||
*.pstats | ||
*.swp |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"cited": { | ||
"tutorials/dqn": [ | ||
"DQN", | ||
"DDPG", | ||
"PPO" | ||
] | ||
} | ||
} |
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
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.