3f20de0a2a62ac5e06175b11bfa5798e58a78792,slm_lab/agent/algorithm/sarsa.py,SARSA,init_algorithm_params,#SARSA#,48
Before Change
self.to_train = 0
self.action_policy = getattr(policy_util, self.action_policy)
self.action_policy_update = getattr(policy_util, self.action_policy_update)
self.body.explore_var = self.explore_var_spec.get("start_val")
@lab_api
def init_nets(self, global_nets=None):
"""Initialize the neural network used to learn the Q function from the spec"""
After Change
])
self.to_train = 0
self.action_policy = getattr(policy_util, self.action_policy)
self.explore_var_scheduler = policy_util.VarScheduler(self.explore_var_spec)
self.body.explore_var = self.explore_var_scheduler.start_val
@lab_api
def init_nets(self, global_nets=None):
"""Initialize the neural network used to learn the Q function from the spec"""
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: kengz/SLM-Lab
Commit Name: 3f20de0a2a62ac5e06175b11bfa5798e58a78792
Time: 2018-11-23
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/sarsa.py
Class Name: SARSA
Method Name: init_algorithm_params
Project Name: kengz/SLM-Lab
Commit Name: 3f20de0a2a62ac5e06175b11bfa5798e58a78792
Time: 2018-11-23
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/actor_critic.py
Class Name: ActorCritic
Method Name: init_algorithm_params
Project Name: kengz/SLM-Lab
Commit Name: 3f20de0a2a62ac5e06175b11bfa5798e58a78792
Time: 2018-11-23
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/ppo.py
Class Name: PPO
Method Name: init_algorithm_params
Project Name: kengz/SLM-Lab
Commit Name: 3f20de0a2a62ac5e06175b11bfa5798e58a78792
Time: 2018-11-23
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/reinforce.py
Class Name: Reinforce
Method Name: init_algorithm_params