e8ffab75132e3788d52b8a8f14dcd63fb7888905,tensorforce/contrib/openai_gym.py,OpenAIGym,reset,#OpenAIGym#,63
Before Change
def reset(self):
if isinstance(self.gym, gym.wrappers.Monitor):
self.gym.stats_recorder.done = True
return self.gym.reset()
def execute(self, action):
if self.visualize:
self.gym.render()
After Change
def reset(self):
if isinstance(self.gym, gym.wrappers.Monitor):
self.gym.stats_recorder.done = True
state = self.gym.reset()
return OpenAIGym.flatten_state(state=state)
def execute(self, action):
if self.visualize:
self.gym.render()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: reinforceio/tensorforce
Commit Name: e8ffab75132e3788d52b8a8f14dcd63fb7888905
Time: 2018-07-24
Author: alexkuhnle@t-online.de
File Name: tensorforce/contrib/openai_gym.py
Class Name: OpenAIGym
Method Name: reset
Project Name: reinforceio/tensorforce
Commit Name: a9d357e36abd11f9542562bfb7c76e2f21a0043a
Time: 2017-06-10
Author: k@ifricke.com
File Name: tensorforce/environments/openai_universe.py
Class Name: OpenAIUniverse
Method Name: reset
Project Name: facebookresearch/Horizon
Commit Name: 03e4a181de01ee8417573e340b5ad0f19f4db00a
Time: 2019-06-18
Author: czxttkl@fb.com
File Name: ml/rl/test/gym/open_ai_gym_environment.py
Class Name: OpenAIGymEnvironment
Method Name: reset