901cc588fee90215d2e2831bd4a3e7481b307ba7,slm_lab/agent/algorithm/dqn.py,HydraDQN,init_nets,#HydraDQN#,408

Before Change


        self.target_net = NetClass(self.net_spec, self, in_dims, out_dims)
        self.online_net = self.target_net
        self.eval_net = self.target_net
        logger.info(f"Training on gpu: {self.net.gpu}")

    @lab_api
    def calc_pdparam(self, x, evaluate=True):
        """

After Change


        NetClass = getattr(net, self.net_spec["type"])
        self.net = NetClass(self.net_spec, self, in_dims, out_dims)
        self.target_net = NetClass(self.net_spec, self, in_dims, out_dims)
        self.net_names = ["net", "target_net"]
        self.post_init_nets()
        self.online_net = self.target_net
        self.eval_net = self.target_net

    @lab_api
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: kengz/SLM-Lab
Commit Name: 901cc588fee90215d2e2831bd4a3e7481b307ba7
Time: 2018-06-18
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: HydraDQN
Method Name: init_nets


Project Name: kengz/SLM-Lab
Commit Name: 901cc588fee90215d2e2831bd4a3e7481b307ba7
Time: 2018-06-18
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: MultitaskDQN
Method Name: init_nets


Project Name: kengz/SLM-Lab
Commit Name: 901cc588fee90215d2e2831bd4a3e7481b307ba7
Time: 2018-06-18
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: DQNBase
Method Name: init_nets


Project Name: kengz/SLM-Lab
Commit Name: 901cc588fee90215d2e2831bd4a3e7481b307ba7
Time: 2018-06-18
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/actor_critic.py
Class Name: ActorCritic
Method Name: init_nets


Project Name: kengz/SLM-Lab
Commit Name: 901cc588fee90215d2e2831bd4a3e7481b307ba7
Time: 2018-06-18
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: HydraDQN
Method Name: init_nets