b4ebca8a338d461935a25c682c5a6e7e78f9e615,skopt/tests/test_sample.py,,test_simple_continuous,#,52
Before Change
g = points({"a": Categorical(1, 2), "b": [1., 4.]},
random_state=1)
for i in range(2):
assert_equal(next(g), expected[i])
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},
After Change
expected =[{"a": 2, "b": 4.988739243755474},
{"a": 1, "b": 1.0004574992693795}]
for i,p in enumerate(points({"a": Categorical(1, 2), "b": Continuous(1, 4)},
len(expected), random_state=1)):
assert_equal(p, expected[i])
for i,p in enumerate(points({"a": Categorical(1, 2), "b": [1., 4.]},
len(expected), random_state=1)):
assert_equal(p, expected[i])
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_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_categorical
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_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_sub_grids