524f8436a298a243bd81b8860f85ab6145b4b26f,rl_coach/environments/doom_environment.py,DoomEnvironment,__init__,#DoomEnvironment#Any#Any#Any#Any#Any#Any#Any#Any#,125
Before Change
// load the emulator with the required level
self.level = DoomLevel[level.upper()]
local_scenarios_path = path.join(os.path.dirname(os.path.realpath(__file__)), "doom")
self.scenarios_dir = local_scenarios_path if "COACH_LOCAL" in level \
else path.join(environ.get("VIZDOOM_ROOT"), "scenarios")
self.game = vizdoom.DoomGame()
self.game.load_config(path.join(self.scenarios_dir, self.level.value))
self.game.set_window_visible(False)
After Change
local_scenarios_path = path.join(os.path.dirname(os.path.realpath(__file__)), "doom")
if "COACH_LOCAL" in level:
self.scenarios_dir = local_scenarios_path
elif "VIZDOOM_ROOT" in environ:
self.scenarios_dir = path.join(environ.get("VIZDOOM_ROOT"), "scenarios")
else:
self.scenarios_dir = path.join(os.path.dirname(os.path.realpath(vizdoom.__file__)), "scenarios")
self.game = vizdoom.DoomGame()
self.game.load_config(path.join(self.scenarios_dir, self.level.value))
self.game.set_window_visible(False)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: NervanaSystems/coach
Commit Name: 524f8436a298a243bd81b8860f85ab6145b4b26f
Time: 2018-11-14
Author: scott.leishman@gmail.com
File Name: rl_coach/environments/doom_environment.py
Class Name: DoomEnvironment
Method Name: __init__
Project Name: NervanaSystems/coach
Commit Name: 524f8436a298a243bd81b8860f85ab6145b4b26f
Time: 2018-11-14
Author: scott.leishman@gmail.com
File Name: rl_coach/environments/doom_environment.py
Class Name: DoomEnvironment
Method Name: __init__
Project Name: BerkeleyAutomation/gqcnn
Commit Name: c7dd27957187e6bb26696a748f6124c4b18d22dd
Time: 2018-09-17
Author: vsatish@berkeley.edu
File Name: examples/fc_policy.py
Class Name:
Method Name:
Project Name: mindsdb/mindsdb
Commit Name: 7283915223e65af525bc8334e7593bbcac9943cf
Time: 2020-06-26
Author: wzzhz13@gmail.com
File Name: distributions/windows/install.py
Class Name:
Method Name: