-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Step collector implementation #280
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
122 commits
Select commit
Hold shift + click to select a range
8229b47
add first version of cached replay buffer(baseline), add standard api…
ChenDRAG 483404f
add cached buffer, vec buffer
ChenDRAG 942c2a3
simple pep8 fix
ChenDRAG ec4b246
init
ChenDRAG e7f631e
Merge branch 'master(net/utils change #275)' into cached
ChenDRAG da564be
Merge branch 'master' into cached
Trinkle23897 36e799e
some change
ChenDRAG 50b20a0
update ReplayBuffer
Trinkle23897 3e487dc
Merge branch 'cached' of github.com:ChenDRAG/tianshou into cached
ChenDRAG 0ac97af
refactor ReplayBuffer
ChenDRAG bd90b97
refactor vec/cached buffer
ChenDRAG 2b7c227
pep8 fix
ChenDRAG 3afb2cb
update VectorReplayBuffer and add test
Trinkle23897 443969d
update cached
Trinkle23897 ee51e64
order change, small fix
ChenDRAG a5bc4ad
try unittest
Trinkle23897 17e3612
add more test and fix bugs
Trinkle23897 7eba23d
fix a bug and add some corner-case tests
Trinkle23897 b9f4f2a
re-implement sample_avail function and add test for CachedReplayBuffe…
Trinkle23897 8fe85f8
improve documents
Trinkle23897 f59a530
ReplayBuffers._offset
Trinkle23897 425c2bd
fix atari-style update; support CachedBuffer with main_buffer==PrioBu…
Trinkle23897 2361755
assert _meta.is_empty() in ReplayBuffers init
Trinkle23897 0160a7f
Merge branch 'master' into cached
Trinkle23897 75d581b
small fix
Trinkle23897 b5d93f3
small fix
Trinkle23897 c8f27c9
improve coverage
Trinkle23897 9c879f2
small buffer change
ChenDRAG 679fe27
draft of step_collector, not finished yet
ChenDRAG 26bb74c
pep8 fix
ChenDRAG 74df1c5
fix ci
Trinkle23897 39463ba
recover speed to 2000+
Trinkle23897 31f0c94
improve documents
Trinkle23897 720da29
ReplayBuffers -> ReplayBufferManager; alloc_fn -> _buffer_allocator; …
Trinkle23897 b9385d8
re-organize test_buffer.py
Trinkle23897 16bb42e
improve test
Trinkle23897 cada7cc
test if can be faster
Trinkle23897 ea50ed1
Merge branch 'cached' into step_collector
ChenDRAG 13683a0
update tianshou/trainer
ChenDRAG 2242089
Merge branch 'master' into step_collector
Trinkle23897 1fed4a6
small change
ChenDRAG f44287d
Merge branch 'step_collector' of github.com:ChenDRAG/tianshou into st…
ChenDRAG cf8a738
collector's buffer type check
ChenDRAG 174f037
fix syntax err
Trinkle23897 8810c23
change collector API in all files
ChenDRAG a0c880b
Merge branch 'step_collector' of github.com:chenDRAG/tianshou into st…
Trinkle23897 7b62804
rewrite multibuf.add and buffer.update
Trinkle23897 3f62101
buffer update (draft)
Trinkle23897 036cf14
buffer update: fix test
Trinkle23897 4b86274
VectorBuffer
Trinkle23897 4ffdb82
vectorbuf
Trinkle23897 5ce4684
merge master
Trinkle23897 13a41fa
ReplayBuffer now support add batch-style data when buffer_ids is not …
Trinkle23897 20f2549
finish step collector, time to write unittest
Trinkle23897 03a1d2f
add test
Trinkle23897 43e69a7
finish step_collector test
Trinkle23897 311fba6
add more test about atari-style buffer setting and CachedReplayBuffer
Trinkle23897 a99a613
fix Collector(buffer=None)
Trinkle23897 220854f
collector enhance
ChenDRAG 59abc05
Merge branch 'step_collector' of github.com:ChenDRAG/tianshou into st…
ChenDRAG 1b8275e
add expl nosie in collector
ChenDRAG 509e417
refactor basepolicy to coordinate with step collector
ChenDRAG a1c9851
fix bug, test_collector passed now
ChenDRAG 6c6d503
change buffer setup in all files, switch buffer to vec buffer
ChenDRAG e683c08
change all api to coordinate with new collector and vec buffer
ChenDRAG 8e12504
small update
Trinkle23897 05140aa
fix some bug
ChenDRAG 59a63da
Merge branch 'step_collector' of github.com:ChenDRAG/tianshou into st…
ChenDRAG f96f81b
coordinate test files and fix on bug on summary writer
ChenDRAG 1f105d5
AsyncCollector, still need more test
Trinkle23897 d30bfce
Merge branch 'step_collector' of github.com:chenDRAG/tianshou into st…
Trinkle23897 0a0dd26
AsyncCollector test
Trinkle23897 3dbb65f
flake8 maxlen 119
Trinkle23897 6155844
black format
Trinkle23897 c6431cf
fix test and docs for collector
Trinkle23897 581e5c8
some other bugs fix
ChenDRAG e1e9ba2
Merge branch 'step_collector' of github.com:ChenDRAG/tianshou into st…
ChenDRAG 26dc2a1
88
Trinkle23897 d3dd8ea
small update
Trinkle23897 c37bf24
fix cuda bug
ChenDRAG 9656a1e
another fix
ChenDRAG 15bd6e7
Apply suggestions from code review
Trinkle23897 38496cf
last fix
ChenDRAG 0575136
Merge branch 'cudafix' of github.com:ChenDRAG/tianshou into cudafix
ChenDRAG 5d60979
Merge branch 'cudafix' into step_collector
ChenDRAG a40700d
pep8 fix
ChenDRAG 5c46415
fix test_ppo
Trinkle23897 4df7bd1
Merge branch 'step_collector' of github.com:chenDRAG/tianshou into st…
Trinkle23897 b91e44f
fix 4096
Trinkle23897 d75f5b5
fix a2c and pg
Trinkle23897 f16c5ff
fix print
Trinkle23897 924fde6
fix some mypy
Trinkle23897 7f5b51c
fix multidim target_q nstep error
Trinkle23897 4ab067f
fix throughput
Trinkle23897 4f6a983
open nstep njit
Trinkle23897 cbb0fda
fix assert False
Trinkle23897 6c0b52c
fix a strange bug in buffer init
ChenDRAG e8a71a7
some bugs in nstep
Trinkle23897 ea6b3c3
fix n_episode test
Trinkle23897 3365eec
value mask bug fix
ChenDRAG d408243
merge0.3.2
ChenDRAG 8a61dd9
update doc
ChenDRAG dc3e150
pep8 fix
ChenDRAG f8e7310
drqn
ChenDRAG 2bc9663
Merge branch 'dev' into step_collector
Trinkle23897 4ffbf58
Apply suggestions from code review
Trinkle23897 51f06b8
add reward_metric in trainer
Trinkle23897 d0357c1
add exploration_noise in mapolicy
Trinkle23897 64fe3ce
it works!
Trinkle23897 64e04df
fix test
Trinkle23897 2275efb
fix dqn family eps-test
Trinkle23897 1145359
fix dead loop in creating new Batch (drqn _is_scalar replace np.asany…
Trinkle23897 c7a624f
split exploration_noise in bcq
Trinkle23897 d5fa008
add test for priovecbuf
Trinkle23897 c3b35d4
improve coverage
Trinkle23897 0cae28c
fix several bugs of documentation
Trinkle23897 b7efc68
fix test
Trinkle23897 b2098ee
add a test of batch
Trinkle23897 4f181cc
fix test
Trinkle23897 8be5b2c
add a note
Trinkle23897 cb4dbda
remove redundant code
Trinkle23897 9b46678
polish docs organization
Trinkle23897 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,29 @@ | ||
tianshou.data | ||
============= | ||
|
||
.. automodule:: tianshou.data | ||
|
||
Batch | ||
----- | ||
|
||
.. automodule:: tianshou.data.batch | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Buffer | ||
------ | ||
|
||
.. automodule:: tianshou.data.buffer | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
|
||
Collector | ||
--------- | ||
|
||
.. automodule:: tianshou.data.collector | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
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
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.