4445f32798d72e291eac7661657092b06d7b9326,rllib/env/pettingzoo_env.py,ParallelPettingZooEnv,step,#ParallelPettingZooEnv#Any#,236
Before Change
def step(self, action_dict):
for agent in self.agents:
action_dict[agent] = self.action_space.sample()
obs, rew, dones, info = self.par_env.step(action_dict)
dones["__all__"] = all(dones.values())
return obs, rew, dones, info
After Change
aobs, arew, adones, ainfo = self.par_env.step(action_dict)
obss = {}
rews = {}
dones = {}
infos = {}
for agent in action_dict:
obss[agent] = aobs[agent]
rews[agent] = arew[agent]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: ray-project/ray
Commit Name: 4445f32798d72e291eac7661657092b06d7b9326
Time: 2020-09-30
Author: weepingwillowben@gmail.com
File Name: rllib/env/pettingzoo_env.py
Class Name: ParallelPettingZooEnv
Method Name: step
Project Name: arviz-devs/arviz
Commit Name: 378e65a8aa8f0be4e1b9e1c1c0e2e1c85bf12271
Time: 2018-09-08
Author: ravinsdrive@gmail.com
File Name: examples/pairplot.py
Class Name:
Method Name:
Project Name: uber/pyro
Commit Name: 3040d26d11096c12daf417cd46912bb30f5dafab
Time: 2020-04-21
Author: fehiepsi@gmail.com
File Name: pyro/infer/mcmc/hmc.py
Class Name: HMC
Method Name: _sample_r