9634be247a33280cfc60b439e6cb61147bd79f56,softqlearning/misc/sampler.py,,rollout,#Any#Any#Any#Any#Any#,7
Before Change
concat_infos = dict()
for key in all_infos[0].keys():
all_vals = [np.array(info[key])[None] for info in all_infos]
concat_infos[key] = np.concatenate(all_vals)
path = dict(
last_obs=last_obs,
dones=terminals[:t + 1],
After Change
terminals = np.zeros((path_length, ))
rewards = np.zeros((path_length, ))
agent_infos = []
env_infos = []
t = 0
for t in range(path_length):
action, agent_info = policy.get_action(observation)
next_obs, reward, terminal, env_info = env.step(action)
agent_infos.append(agent_info)
env_infos.append(env_info)
actions[t] = action
terminals[t] = terminal
rewards[t] = reward
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances Project Name: rail-berkeley/softlearning
Commit Name: 9634be247a33280cfc60b439e6cb61147bd79f56
Time: 2018-01-29
Author: haarnoja@berkeley.edu
File Name: softqlearning/misc/sampler.py
Class Name:
Method Name: rollout
Project Name: NifTK/NiftyNet
Commit Name: 5af1994def9a52fe1ffd2847b2519f1e27cfbc64
Time: 2017-08-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/misc_io.py
Class Name:
Method Name: do_resampling
Project Name: p2irc/deepplantphenomics
Commit Name: 204d1940a9306ae128a4eca6ac9334f9c2f24149
Time: 2019-09-27
Author: dbl599@mail.usask.ca
File Name: deepplantphenomics/semantic_segmentation_model.py
Class Name: SemanticSegmentationModel
Method Name: compute_full_test_accuracy
Project Name: pymc-devs/pymc3
Commit Name: 66d21e1fcd43323289840ce83e4193e6b9957d0c
Time: 2017-11-21
Author: junpeng.lao@unifr.ch
File Name: pymc3/sampling.py
Class Name:
Method Name: sample_ppc_w