4da0e542d54c7977aae5bda5242cab15ab3f344b,rllib/tests/test_supported_spaces.py,,,#,183

Before Change


        ACTION_SPACES_TO_TEST = {
            "discrete": Discrete(5),
        }
        OBSERVATION_SPACES_TO_TEST = {
            "vector": Box(0.0, 1.0, (5, ), dtype=np.float32),
            "atari": Box(0.0, 1.0, (210, 160, 3), dtype=np.float32),
        }

    sys.exit(pytest.main(["-v", __file__]))

After Change



    // One can specify the specific TestCase class to run.
    // None for all unittest.TestCase classes in this file.
    class_ = sys.argv[1] if len(sys.argv) > 0 else None
    sys.exit(pytest.main(
        ["-v", __file__ + ("" if class_ is None else "::" + class_)]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ray-project/ray
Commit Name: 4da0e542d54c7977aae5bda5242cab15ab3f344b
Time: 2020-07-08
Author: sven@anyscale.io
File Name: rllib/tests/test_supported_spaces.py
Class Name:
Method Name:


Project Name: openai/baselines
Commit Name: 9b68103b737ac46bc201dfb3121cfa5df2127e53
Time: 2019-05-08
Author: peterzhokhoff@gmail.com
File Name: baselines/common/atari_wrappers.py
Class Name: WarpFrame
Method Name: __init__


Project Name: openai/baselines
Commit Name: b875fb7b5e4feb85b9f1f1bf4e78f64c75595664
Time: 2019-02-27
Author: peterzhokhoff@gmail.com
File Name: baselines/common/tests/envs/mnist_env.py
Class Name: MnistEnv
Method Name: __init__