8a535ca6f27dc045535d6816f2c840329db45aa7,gym/envs/doom/doom_take_cover.py,DoomTakeCoverEnv,_seed,#DoomTakeCoverEnv#Any#,55
Before Change
self._seed()
def _seed(self, seed=None):
np_random, seed1 = seeding.np_random(seed)
// Derive a random seed.
seed2 = seeding.hash_seed(seed1 + 1) % 2**32
self.game.set_seed(seed2)
// 2 allowed actions [9, 10] (must match .cfg file)
self.action_space = spaces.HighLow(np.matrix([[0, 1, 0]] * 2), np_random=np_random)
self.observation_space = spaces.Box(low=0, high=255, shape=(self.screen_height, self.screen_width, 3), np_random=np_random)
return [seed1, seed2]
After Change
self._seed()
def _seed(self, seed=None):
seed = seeding.hash_seed(seed) % 2**32
self.game.set_seed(seed)
return [seed]
In pattern: SUPERPATTERN
Frequency: 9
Non-data size: 24
Instances
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_take_cover.py
Class Name: DoomTakeCoverEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_health_gathering.py
Class Name: DoomHealthGatheringEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_take_cover.py
Class Name: DoomTakeCoverEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_predict_position.py
Class Name: DoomPredictPositionEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_my_way_home.py
Class Name: DoomMyWayHomeEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_basic.py
Class Name: DoomBasicEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_defend_center.py
Class Name: DoomDefendCenterEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_defend_line.py
Class Name: DoomDefendLineEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_corridor.py
Class Name: DoomCorridorEnv
Method Name: _seed
Project Name: openai/gym
Commit Name: 8a535ca6f27dc045535d6816f2c840329db45aa7
Time: 2016-05-30
Author: gdb@gregbrockman.com
File Name: gym/envs/doom/doom_deathmatch.py
Class Name: DoomDeathmatchEnv
Method Name: _seed