377e7de90e0ab1e973d9bed4909d26abab68e7e2,slm_lab/agent/algorithm/base.py,Algorithm,train,#Algorithm#,89
Before Change
@lab_api
def train(self):
"""Implement algorithm train, or throw NotImplementedError"""
if util.get_lab_mode() in ("enjoy", "eval"):
return np.nan
raise NotImplementedError
After Change
@lab_api
def train(self):
"""Implement algorithm train, or throw NotImplementedError"""
if util.in_eval_lab_modes():
return np.nan
raise NotImplementedError
In pattern: SUPERPATTERN
Frequency: 11
Non-data size: 4
Instances
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/base.py
Class Name: Algorithm
Method Name: train
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: VanillaDQN
Method Name: train
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@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: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@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: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/net/net_util.py
Class Name:
Method Name: load_algorithm
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/base.py
Class Name: Algorithm
Method Name: space_train
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/policy_util.py
Class Name: VarScheduler
Method Name: update
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/sarsa.py
Class Name: SARSA
Method Name: train
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/reinforce.py
Class Name: Reinforce
Method Name: train
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/__init__.py
Class Name: Agent
Method Name: save
Project Name: kengz/SLM-Lab
Commit Name: 377e7de90e0ab1e973d9bed4909d26abab68e7e2
Time: 2019-02-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/actor_critic.py
Class Name: ActorCritic
Method Name: train