45e9f3ab4952407c8ed726cd564552fd85ec5427,environment/registration.py,,make_random_environments,#Any#Any#,40
Before Change
def make_random_environments(env_name, n_envs):
Make n_envs random environments of the env_name class.
if env_name not in environment_registry:
raise ClassNotRegisteredError("Class {} must be registered in order to be randomly instantiated.".format(env_name))
cls = environment_registry.get(env_name)
envs = []
for _ in range(n_envs):
params = {}
After Change
def make_random_environments(id, n_envs):
Make n_envs random environments of the env_name class.
spec = gym.envs.registry.spec(id)
cls = gym.envs.registration.load(spec._entry_point)
envs = []
for _ in range(n_envs):
args = {"id": id}
for p in cls.changeable_parameters:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: arnomoonens/yarll
Commit Name: 45e9f3ab4952407c8ed726cd564552fd85ec5427
Time: 2018-01-20
Author: x-006@hotmail.com
File Name: environment/registration.py
Class Name:
Method Name: make_random_environments
Project Name: vatlab/SoS
Commit Name: f5487e3b76129b97f29365058d169c72cb37e3cf
Time: 2017-02-14
Author: ben.bog@gmail.com
File Name: sos/sos_step.py
Class Name:
Method Name: execute_task
Project Name: nipy/dipy
Commit Name: 2df29df88d4b603b0e89e45481a062c38d4b829d
Time: 2017-03-28
Author: marc.cote.19@gmail.com
File Name: dipy/viz/tests/test_ui.py
Class Name:
Method Name: test_ui_textbox