861657d2c9b321961994c8cdd0e58b6c4fe0645f,slm_lab/env/__init__.py,EnvSpace,__init__,#EnvSpace#Any#Any#,364
Before Change
self.spec = spec
self.aeb_space = aeb_space
aeb_space.env_space = self
self.env_spec = spec["env"]
self.info_space = aeb_space.info_space
self.envs = []
for e, env_spec in enumerate(self.env_spec):
env_spec = ps.merge(spec["meta"].copy(), env_spec)
try:
env = OpenAIEnv(env_spec, self, e)
except gym.error.Error:
env = UnityEnv(env_spec, self, e)
self.envs.append(env)
@lab_api
def post_body_init(self):
"""Run init for components that need bodies to exist first, e.g. memory or architecture."""
for env in self.envs:
After Change
aeb_space.env_space = self
self.info_space = aeb_space.info_space
self.envs = []
for e in range(len(self.spec["env"])):
env = make_env(self.spec, e, env_space=self)
self.envs.append(env)
logger.info(util.self_desc(self))
def get(self, e):
return self.envs[e]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 11
Instances
Project Name: kengz/SLM-Lab
Commit Name: 861657d2c9b321961994c8cdd0e58b6c4fe0645f
Time: 2018-09-03
Author: kengzwl@gmail.com
File Name: slm_lab/env/__init__.py
Class Name: EnvSpace
Method Name: __init__
Project Name: elfi-dev/elfi
Commit Name: 418831c50506840b10bce58960b1ffd75080381e
Time: 2017-06-19
Author: jarno.lintusaari@aalto.fi
File Name: elfi/methods/bo/utils.py
Class Name:
Method Name: minimize
Project Name: kermitt2/delft
Commit Name: 151f9e7d141372ce45fc4367b81385eeccc95093
Time: 2018-06-20
Author: patrice.lopez@science-miner.com
File Name: sequenceLabelling/preprocess.py
Class Name:
Method Name: to_vector_simple_with_elmo