376487bcf6a6a35cecabe31fc7537e7ee531d105,slm_lab/agent/algorithm/base.py,Algorithm,post_init_nets,#Algorithm#,45

Before Change


        Call at the end of init_nets() after setting self.net_names
        """
        assert hasattr(self, "net_names")
        lab_mode = util.get_lab_mode()
        if lab_mode == "enjoy" or lab_mode == "eval":
            logger.info(f"Loaded algorithm models for lab_mode: {lab_mode}")
            self.load()
        else:

After Change


        Call at the end of init_nets() after setting self.net_names
        """
        assert hasattr(self, "net_names")
        if util.get_lab_mode() in ["enjoy", "eval"]:
            logger.info(f"Loaded algorithm models for lab_mode: {lab_mode}")
            self.load()
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 9

Non-data size: 8

Instances


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/base.py
Class Name: Algorithm
Method Name: post_init_nets


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/actor_critic.py
Class Name: ActorCritic
Method Name: train


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/base.py
Class Name: Algorithm
Method Name: post_init_nets


Project Name: kengz/SLM-Lab
Commit Name: e04e0d946f2c93ff38e0e340578116cbe244f6d6
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/base.py
Class Name: Algorithm
Method Name: train


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/policy_util.py
Class Name: VarScheduler
Method Name: update


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/sarsa.py
Class Name: SARSA
Method Name: train


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/hydra_dqn.py
Class Name: HydraDQN
Method Name: space_train


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/reinforce.py
Class Name: Reinforce
Method Name: train


Project Name: kengz/SLM-Lab
Commit Name: 376487bcf6a6a35cecabe31fc7537e7ee531d105
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: VanillaDQN
Method Name: train


Project Name: kengz/SLM-Lab
Commit Name: e04e0d946f2c93ff38e0e340578116cbe244f6d6
Time: 2018-12-11
Author: lhgraesser@gmail.com
File Name: slm_lab/agent/algorithm/base.py
Class Name: Algorithm
Method Name: space_train