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

fixbug(zlx): random_collect compatible to episode collector #190

Merged
merged 5 commits into from
Jan 19, 2022

Conversation

LuciusMos
Copy link
Collaborator

Description

Fix bug of inital random collect, make it compatible to episode collector.

Use a random_collect_fn to replace all corresponding codes in entries.

Related Issue

#184

TODO

@puyuan1996

td3_vae(different from other entries)

reward_model_ngu(TODO on collector_kwargs)

Check List

  • merge the latest version source branch/repo, and resolve all the conflicts
  • pass style check
  • pass all the tests

… random_collect_fn to replace entries' corresponding code
ding/entry/__init__.py Outdated Show resolved Hide resolved
ding/entry/random_collect.py Outdated Show resolved Hide resolved
ding/entry/random_collect.py Outdated Show resolved Hide resolved
@PaParaZz1 PaParaZz1 added bug Something isn't working refactor refactor module or component labels Jan 18, 2022
@codecov
Copy link

codecov bot commented Jan 18, 2022

Codecov Report

Merging #190 (d5040a2) into main (290ce49) will increase coverage by 0.23%.
The diff coverage is 91.04%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #190      +/-   ##
==========================================
+ Coverage   83.81%   84.05%   +0.23%     
==========================================
  Files         437      439       +2     
  Lines       33427    34025     +598     
==========================================
+ Hits        28018    28600     +582     
- Misses       5409     5425      +16     
Flag Coverage Δ
unittests 84.05% <91.04%> (+0.23%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
ding/entry/serial_entry_reward_model_ngu.py 21.51% <50.00%> (+2.47%) ⬆️
ding/entry/serial_entry_td3_vae.py 15.38% <50.00%> (+2.38%) ⬆️
ding/entry/serial_entry_guided_cost.py 86.81% <66.66%> (+5.56%) ⬆️
ding/entry/serial_entry_mbrl.py 16.66% <66.66%> (+1.81%) ⬆️
ding/entry/serial_entry_r2d3.py 13.04% <66.66%> (+1.56%) ⬆️
ding/entry/serial_entry_reward_model.py 89.06% <66.66%> (+7.90%) ⬆️
ding/entry/serial_entry_reward_model_onpolicy.py 21.21% <66.66%> (+2.90%) ⬆️
ding/entry/serial_entry_sqil.py 88.60% <66.66%> (+6.46%) ⬆️
ding/entry/serial_entry_trex.py 87.09% <66.66%> (+10.28%) ⬆️
ding/entry/serial_entry_dqfd.py 73.72% <75.00%> (+4.92%) ⬆️
... and 165 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 290ce49...d5040a2. Read the comment docs.

@PaParaZz1 PaParaZz1 merged commit 8068628 into main Jan 19, 2022
@PaParaZz1 PaParaZz1 deleted the random-collect-entry-bugfix branch January 19, 2022 10:07
puyuan1996 added a commit to puyuan1996/DI-engine that referenced this pull request Apr 18, 2022
* fixbug(zlx): make random_collect compatible to episode collector; use random_collect_fn to replace entries' corresponding code

* fixbug(zlx): Fix comments by nyz; Add function random_collect's unittest

* polish(pu): polish serial entry for td3_vae and reward_model_ngu

* format(zlx): flake8 style

Co-authored-by: zlx-sensetime <zhaoliangxuan@sensetime.com>
Co-authored-by: puyuan1996 <2402552459@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working refactor refactor module or component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants