d7177951755d388cc929ad559d7dbde17a019b7c,tests/garage/test_environment.py,,sample_data,#,20

Before Change


                               high=10,
                               shape=(4, 3, 2),
                               dtype=np.float32)
    act_space = gym.spaces.MultiDiscrete([2, 5])
    env_spec = EnvSpec(obs_space, act_space)

    // generate data
    next_obs = obs_space.sample()

After Change


def sample_data():
    // spaces
    obs_space = akro.Box(low=1, high=10, shape=(4, 3, 2), dtype=np.float32)
    act_space = akro.Discrete(5)
    env_spec = EnvSpec(obs_space, act_space)

    // generate data
    next_obs = obs_space.sample()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rlworkgroup/garage
Commit Name: d7177951755d388cc929ad559d7dbde17a019b7c
Time: 2020-09-01
Author: 17186559+haydenshively@users.noreply.github.com
File Name: tests/garage/test_environment.py
Class Name:
Method Name: sample_data


Project Name: flow-project/flow
Commit Name: ba54a88068c07af00b4cb26362788ee51af319be
Time: 2017-10-12
Author: akreidieh@gmail.com
File Name: flow/envs/lane_changing.py
Class Name: SimpleLaneChangingAccelerationEnvironment
Method Name: action_space


Project Name: flow-project/flow
Commit Name: 4e2a5cb241b8cd957a1ff08787c4304426dc4a86
Time: 2017-06-09
Author: eugenevinitsky@airbears2-10-142-37-84.airbears2.1918.berkeley.edu
File Name: cistar-dev/cistar/envs/lane_changing.py
Class Name: SimpleLaneChangingAccelerationEnvironment
Method Name: action_space