c1cbd1b88424b93b085710d866b35e55b937da65,slm_lab/agent/algorithm/hydra_dqn.py,HydraDQN,space_act,#HydraDQN#Any#,43

Before Change


            if self.normalize_state:
                state = policy_util.update_online_stats_and_normalize_state(body, state)
            states.append(state)
        xs = [torch.from_numpy(state).float() for state in states]
        pdparam = self.calc_pdparam(xs)
        // use multi-policy. note arg change
        action_a = self.action_policy(states, self, self.agent.nanflat_body_a, pdparam)

After Change


            if self.normalize_state:
                state = policy_util.update_online_stats_and_normalize_state(body, state)
            states.append(state)
        xs = [torch.from_numpy(state.astype(np.float32)) for state in states]
        pdparam = self.calc_pdparam(xs)
        // use multi-policy. note arg change
        action_a = self.action_policy(states, self, self.agent.nanflat_body_a, pdparam)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: kengz/SLM-Lab
Commit Name: c1cbd1b88424b93b085710d866b35e55b937da65
Time: 2019-05-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/hydra_dqn.py
Class Name: HydraDQN
Method Name: space_act


Project Name: NifTK/NiftyNet
Commit Name: ab26c016f80b4b4de722e7b05b07153f48e77ef9
Time: 2018-11-20
Author: oeslle.lucena@gmail.com
File Name: demos/PyTorchNiftyNet/libs/dataset_niftynet.py
Class Name: DatasetNiftySampler
Method Name: __getitem__


Project Name: kengz/SLM-Lab
Commit Name: 4df11055e61fa6c9fede6b2114c8ce05de9a035e
Time: 2017-12-08
Author: lgraesser@users.noreply.github.com
File Name: slm_lab/agent/algorithm/dqn.py
Class Name: DQNBase
Method Name: compute_q_target_values


Project Name: kengz/SLM-Lab
Commit Name: c1cbd1b88424b93b085710d866b35e55b937da65
Time: 2019-05-03
Author: kengzwl@gmail.com
File Name: slm_lab/agent/algorithm/policy_util.py
Class Name:
Method Name: try_preprocess