c009c178f6b8adaff9bb8e9cca2d0797d3d14425,rllib/rollout.py,,rollout,#Any#Any#Any#Any#Any#Any#Any#,345
Before Change
state_init = {p: m.get_initial_state() for p, m in policy_map.items()}
use_lstm = {p: len(s) > 0 for p, s in state_init.items()}
else:
env = gym.make(env_name)
multiagent = False
try:
policy_map = {DEFAULT_POLICY_ID: agent.policy}
except AttributeError:
After Change
use_lstm = {p: len(s) > 0 for p, s in state_init.items()}
else:
from gym import envs
if envs.registry.env_specs.get(agent.config["env"]):
// if environment is gym environment, load from gym
env = gym.make(agent.config["env"])
else:
// if environment registered ray environment, load from ray
env_creator = _global_registry.get(ENV_CREATOR,
agent.config["env"])
env_context = EnvContext(
agent.config["env_config"] or {}, worker_index=0)
env = env_creator(env_context)
multiagent = False
try:
policy_map = {DEFAULT_POLICY_ID: agent.policy}
except AttributeError:
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 3
Instances
Project Name: ray-project/ray
Commit Name: c009c178f6b8adaff9bb8e9cca2d0797d3d14425
Time: 2020-11-24
Author: 66017297+danuo@users.noreply.github.com
File Name: rllib/rollout.py
Class Name:
Method Name: rollout
Project Name: lcswillems/torch-rl
Commit Name: 1f2f5d9f65a4dd102c9892da8de2907effae857b
Time: 2019-07-25
Author: lcswillems@gmail.com
File Name: scripts/evaluate.py
Class Name:
Method Name:
Project Name: rail-berkeley/softlearning
Commit Name: 03704f2639e885353e46b60db5450c0e24285d98
Time: 2018-07-29
Author: kristian.hartikainen@gmail.com
File Name: softlearning/environments/adapters/gym_adapter.py
Class Name: GymAdapter
Method Name: __init__
Project Name: openai/gym
Commit Name: 3b19acdfce7a5812549c6dad1ebf4783593f3374
Time: 2016-05-03
Author: omgtech@gmail.com
File Name: examples/agents/random_agent.py
Class Name:
Method Name:
Project Name: autorope/donkeycar
Commit Name: e2b80e2afbd64a83fead539811f6b36599def9b4
Time: 2020-04-01
Author: tawnkramer@gmail.com
File Name: donkeycar/parts/dgym.py
Class Name: DonkeyGymEnv
Method Name: __init__
Project Name: lcswillems/torch-rl
Commit Name: 1f2f5d9f65a4dd102c9892da8de2907effae857b
Time: 2019-07-25
Author: lcswillems@gmail.com
File Name: scripts/visualize.py
Class Name:
Method Name: