cdae44ad2de782c23afe7028f7f626a46b9d1206,skopt/tests/test_optimizer.py,,test_exhaust_initial_calls,#,117

Before Change


    opt.tell(x1, 3.)
    x2 = opt.ask()  // random point
    assert x1 != x2
    opt.tell(x2, 4.)
    // this is the first non-random point
    x3 = opt.ask()
    assert x2 != x3
    x4 = opt.ask()

After Change


    x2 = opt.ask()  // random point
    assert x1 != x2
    print("tell2")
    r2 = opt.tell(x2, 4.)
    assert len(r2.models) == 1
    // this is the first non-random point
    x3 = opt.ask()
    assert x2 != x3
    x4 = opt.ask()
    // no new information was added so should be the same
    assert x3 == x4
    r3 = opt.tell(x3, 1.)
    assert len(r3.models) == 2
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: cdae44ad2de782c23afe7028f7f626a46b9d1206
Time: 2017-06-11
Author: betatim@gmail.com
File Name: skopt/tests/test_optimizer.py
Class Name:
Method Name: test_exhaust_initial_calls


Project Name: scikit-optimize/scikit-optimize
Commit Name: 821aec22a355aaab82b78e1f80413967f3bacbb3
Time: 2017-12-13
Author: chschroeder1003@gmail.com
File Name: skopt/tests/test_parallel_cl.py
Class Name:
Method Name: test_constant_liar_runs


Project Name: scikit-optimize/scikit-optimize
Commit Name: c6c40da6999befc1a7bdfe1a557badd4b8d279e4
Time: 2018-01-22
Author: chschroeder1003@gmail.com
File Name: skopt/tests/test_parallel_cl.py
Class Name:
Method Name: test_constant_liar_runs