544875dd8a7fea49a86e5623d37274159b4ba7b5,skopt/optimizer/base.py,,base_minimize,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,20

Before Change


        for i, x in enumerate(x0):
            // on the last iteration fit a model so we can start predicting
            // unless there are random points to be evaluated next
            fit_model = i == len(x0) - 1 and n_random_starts == 0
            y = func(x)
            optimizer.tell(x, y, fit=fit_model)

            if callbacks:

After Change



    // User suggested points at which to evaluate the objective first
    if x0 and y0 is None:
        y0 = list(map(func, x0))
        if not all(map(np.isscalar, y0)):
            raise ValueError(
                "`y0` elements should be scalars")
        optimizer.tell(x0, y0)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: scikit-optimize/scikit-optimize
Commit Name: 544875dd8a7fea49a86e5623d37274159b4ba7b5
Time: 2017-01-10
Author: betatim@gmail.com
File Name: skopt/optimizer/base.py
Class Name:
Method Name: base_minimize


Project Name: matplotlib/matplotlib
Commit Name: 0b92b4f5530fee68432f13075a1ddc866748f9d1
Time: 2020-11-20
Author: anntzer.lee@gmail.com
File Name: examples/showcase/firefox.py
Class Name:
Method Name: svg_parse


Project Name: grrrr/nsgt
Commit Name: 4a824aa94c728a37c6bd3fb017e7f893fa41a2b9
Time: 2012-01-10
Author: gr@grrrr.org
File Name: nsgt/nsigtf.py
Class Name:
Method Name: nsigtf_sl