125c7ee38d413e4709271292c473f5930196b137,environments/gym_environment_wrapper.py,GymEnvironmentWrapper,__init__,#GymEnvironmentWrapper#Any#,47

Before Change


        // pybullet requires rendering before resetting the environment, but other gym environments (Pendulum) will crash
        try:
            if self.is_rendered:
                self.render()
        except:
            pass

        o = self.reset(True)["observation"]

After Change


            self.action_space_low = self.env.action_space.low
            self.action_space_abs_range = np.maximum(np.abs(self.action_space_low), np.abs(self.action_space_high))
        self.actions = {i: i for i in range(self.action_space_size)}
        self.key_to_action = {}
        if hasattr(self.env.unwrapped, "get_keys_to_action"):
            self.key_to_action = self.env.unwrapped.get_keys_to_action()

        // measurements
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NervanaSystems/coach
Commit Name: 125c7ee38d413e4709271292c473f5930196b137
Time: 2017-12-19
Author: 30383381+itaicaspi-intel@users.noreply.github.com
File Name: environments/gym_environment_wrapper.py
Class Name: GymEnvironmentWrapper
Method Name: __init__


Project Name: nipy/dipy
Commit Name: 65df2d0ea1494e78e8018056901772c7fca93b3b
Time: 2016-08-25
Author: marc.cote.19@gmail.com
File Name: dipy/viz/tests/test_fvtk_widgets.py
Class Name:
Method Name: test_button_and_slider_widgets


Project Name: jazzband/django-debug-toolbar
Commit Name: e403821323d529980407c05da77409c7e1c5c2a0
Time: 2008-09-08
Author: rob@cogit8.org
File Name: debug_toolbar/panels/headers.py
Class Name: HeaderDebugPanel
Method Name: content