-
Notifications
You must be signed in to change notification settings - Fork 377
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
feature(cxy): add averaged-dqn policy #683
base: main
Are you sure you want to change the base?
Conversation
@@ -53,3 +53,5 @@ | |||
|
|||
# new-type policy | |||
from .ppof import PPOFPolicy | |||
|
|||
from .averaged_dqn import AveragedDQNPolicy, EnsembleDQNPolicy |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
move it to the old-type policy part
class AveragedDQNPolicy(DQNPolicy): | ||
""" | ||
Overview: | ||
Policy class of Averaged_DQN algorithm. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't add underline here
|
||
# use model_wrapper for specialized demands of different modes | ||
self._target_model_list = copy.deepcopy(self._prime_model_list) | ||
if 'target_update_freq' in self._cfg.learn: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only use one type target update here
|
||
|
||
def _state_dict_learn(self) -> Dict[str, Any]: | ||
""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polish indent
Description
Adding new policy: averaged-dqn and part of ensemble-dqn.
Related Issue
TODO
Check List