b4ebca8a338d461935a25c682c5a6e7e78f9e615,skopt/tests/test_sample.py,,test_sub_grids,#,67

Before Change




def test_sub_grids():
    g = points(
        [{"a": ["a"], "b": [1, 4]}, {"a": ["b"], "c": [4, 5]}], random_state=1)
    expected =[{"a": "b", "c": 4}, {"a": "b", "c": 4}, {"a": "a", "b": 1},
               {"a": "b", "c": 4}, {"a": "b", "c": 4}]

    for i in range(5):

After Change


    expected =[{"a": "b", "c": 4}, {"a": "b", "c": 4}, {"a": "a", "b": 1},
               {"a": "b", "c": 4}, {"a": "b", "c": 4}]

    for i,p in enumerate(points([{"a": ["a"], "b": [1, 4]},
                                 {"a": ["b"], "c": [4, 5]}],
                                len(expected), random_state=1)):
        assert_equal(p, expected[i])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 7

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: b4ebca8a338d461935a25c682c5a6e7e78f9e615
Time: 2016-04-26
Author: betatim@gmail.com
File Name: skopt/tests/test_sample.py
Class Name:
Method Name: test_sub_grids


Project Name: scikit-optimize/scikit-optimize
Commit Name: b4ebca8a338d461935a25c682c5a6e7e78f9e615
Time: 2016-04-26
Author: betatim@gmail.com
File Name: skopt/tests/test_sample.py
Class Name:
Method Name: test_simple_continuous


Project Name: scikit-optimize/scikit-optimize
Commit Name: b4ebca8a338d461935a25c682c5a6e7e78f9e615
Time: 2016-04-26
Author: betatim@gmail.com
File Name: skopt/tests/test_sample.py
Class Name:
Method Name: test_simple_grid


Project Name: scikit-optimize/scikit-optimize
Commit Name: b4ebca8a338d461935a25c682c5a6e7e78f9e615
Time: 2016-04-26
Author: betatim@gmail.com
File Name: skopt/tests/test_sample.py
Class Name:
Method Name: test_simple_discrete


Project Name: scikit-optimize/scikit-optimize
Commit Name: b4ebca8a338d461935a25c682c5a6e7e78f9e615
Time: 2016-04-26
Author: betatim@gmail.com
File Name: skopt/tests/test_sample.py
Class Name:
Method Name: test_simple_categorical