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

refactor(gry): refactor reward model #636

Open
wants to merge 63 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 58 commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
c372c07
refactor network and red reward model
ruoyuGao Apr 5, 2023
6718e4a
create reward model utils
ruoyuGao Apr 5, 2023
be7039a
polish network and reward model utils, provide test for them
ruoyuGao Apr 6, 2023
a4de466
refactor network for two method: learn and forward
ruoyuGao Apr 10, 2023
d615c14
Merge branch 'main' into ruoyugao
ruoyuGao Apr 10, 2023
7a8ec6e
refactor rnd
ruoyuGao Apr 11, 2023
55c7be8
refactor gail
ruoyuGao Apr 11, 2023
ff60716
fix gail for unit test
ruoyuGao Apr 11, 2023
6b80392
refactor icm
ruoyuGao Apr 12, 2023
25d49b5
fix wrong unit test in test_reward_model_utils
ruoyuGao Apr 12, 2023
c081ff0
refactor gcl and pwil
ruoyuGao Apr 13, 2023
f1218cd
refactor pdeil
ruoyuGao Apr 13, 2023
d9060c2
add hidden_size_list to gail
ruoyuGao Apr 13, 2023
179182a
change gail test for new config
ruoyuGao Apr 13, 2023
d067731
refactor trex network
ruoyuGao Apr 14, 2023
29f0d55
fix style and wrong import
ruoyuGao Apr 14, 2023
4ec0bd3
fix style for trex
ruoyuGao Apr 14, 2023
800f090
Merge branch 'main' into ruoyugao
ruoyuGao Apr 14, 2023
c64b5c7
Merge branch 'ruoyugao' of https://github.com/ruoyuGao/DI-engine into…
ruoyuGao Apr 14, 2023
660af32
fix unit test for trex onppo
ruoyuGao Apr 17, 2023
1b0d579
Merge branch 'main' into ruoyugao
ruoyuGao Apr 21, 2023
b4e81dd
refactor ngu and provide cartpole config file
ruoyuGao Apr 21, 2023
eddc80d
change reward entry
ruoyuGao Apr 26, 2023
6e2b867
change trex entry to new entry, combine old trex test to new test
ruoyuGao Apr 26, 2023
e25d265
Merge branch 'main' into ruoyugao
ruoyuGao Apr 28, 2023
97634dc
refactor trex config file
ruoyuGao Apr 28, 2023
f099cac
refactor trex config file
ruoyuGao Apr 28, 2023
0c48c08
refactor trex config file
ruoyuGao Apr 28, 2023
594d619
add gail to new reward entry
ruoyuGao May 3, 2023
58a2bff
remove preferenced based irl entry(used for trex, drex before)
ruoyuGao May 3, 2023
e9db652
Merge branch 'main' into ruoyugao
ruoyuGao May 3, 2023
822d7a4
remove unuse code in gcl
ruoyuGao May 3, 2023
be03aa9
change clear data from pipeline to RM && add ngu to new entry
ruoyuGao May 4, 2023
d3ce3e2
remove ngu old entry
ruoyuGao May 4, 2023
4c19aa3
fix env pool test bug
ruoyuGao May 4, 2023
0cc2149
add drex to new entry
ruoyuGao May 4, 2023
5b4e4cc
fix unit test for trex and gail
ruoyuGao May 4, 2023
ff4de47
fix style
ruoyuGao May 4, 2023
9e63ef1
fix style for drex unittest
ruoyuGao May 5, 2023
ca2e2db
fix drex unittest
ruoyuGao May 5, 2023
8716afe
fix bug in minigrid env
ruoyuGao May 5, 2023
9036141
add explain for rm utils
ruoyuGao May 6, 2023
6b9754a
move RM unittest into one file
ruoyuGao May 6, 2023
a52a1c0
Merge branch 'main' into ruoyugao
ruoyuGao May 6, 2023
a5c7989
add drex config
ruoyuGao May 8, 2023
d631237
Merge branch 'ruoyugao' of https://github.com/ruoyuGao/DI-engine into…
ruoyuGao May 8, 2023
f42d131
fix ngu wrapper bug in minigrid
ruoyuGao May 9, 2023
edff260
fix ngu wrapper bug in minigrid
ruoyuGao May 9, 2023
6ab66e1
Merge branch 'main' into ruoyugao
ruoyuGao May 10, 2023
cb0c627
refactor gcl, add it to reward entry
ruoyuGao May 22, 2023
016fbb3
refactor gcl config and bash format other config
ruoyuGao May 22, 2023
cf50148
Merge branch 'ruoyugao' of https://github.com/ruoyuGao/DI-engine into…
ruoyuGao May 22, 2023
919c01b
fix bug for test, remove wrong comment
ruoyuGao May 22, 2023
a1d0b3a
polish code for ngu, drex, base rm and entry
ruoyuGao Jun 6, 2023
0a0af3c
Merge branch 'main' into ruoyugao
ruoyuGao Jun 6, 2023
e310b4c
polish code for all rm
ruoyuGao Jun 6, 2023
92dc227
fix style for ngu
ruoyuGao Jun 6, 2023
a4f364d
polish comment for config files
ruoyuGao Jun 6, 2023
1f06dec
add gcl unit test
ruoyuGao Jun 9, 2023
a547b3b
polish RM
ruoyuGao Jun 19, 2023
97da5c6
fix style for rnd and icm
ruoyuGao Jun 20, 2023
774b2a4
fix style for rnd and icm
ruoyuGao Jun 20, 2023
b78e36c
fix style for icm
ruoyuGao Jun 20, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 0 additions & 7 deletions ding/entry/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from .serial_entry_onpolicy import serial_pipeline_onpolicy
from .serial_entry_onpolicy_ppg import serial_pipeline_onpolicy_ppg
from .serial_entry_offline import serial_pipeline_offline
from .serial_entry_ngu import serial_pipeline_ngu
from .serial_entry_decision_transformer import serial_pipeline_dt
from .serial_entry_reward_model_offpolicy import serial_pipeline_reward_model_offpolicy
from .serial_entry_reward_model_onpolicy import serial_pipeline_reward_model_onpolicy
Expand All @@ -17,13 +16,7 @@
from .application_entry import eval, collect_demo_data, collect_episodic_demo_data, \
episode_to_transitions, episode_to_transitions_filter
from .application_entry_trex_collect_data import trex_collecting_data, collect_episodic_demo_data_for_trex
from .serial_entry_guided_cost import serial_pipeline_guided_cost
from .serial_entry_gail import serial_pipeline_gail
from .utils import random_collect
from .serial_entry_preference_based_irl \
import serial_pipeline_preference_based_irl
from .serial_entry_preference_based_irl_onpolicy \
import serial_pipeline_preference_based_irl_onpolicy
from .application_entry_drex_collect_data import drex_collecting_data
from .serial_entry_mbrl import serial_pipeline_dyna, serial_pipeline_dream
from .serial_entry_bco import serial_pipeline_bco
Expand Down
170 changes: 0 additions & 170 deletions ding/entry/serial_entry_gail.py

This file was deleted.

162 changes: 0 additions & 162 deletions ding/entry/serial_entry_guided_cost.py

This file was deleted.