24986bcc156abd807770d0cde6f45d6f8df08968,scipy/optimize/tests/test_minpack.py,TestCurveFit,test_bounds_p0,#TestCurveFit#,456

Before Change


        def f(x, a, b):
            return a * np.exp(-b*x)

        xdata = np.linspace(0, 1, 11)
        ydata = f(xdata, 2., 2.)
        bounds = ([1., 0], [1.5, 3.])
        p0 = [1.01, 2.9]
        for method in [None, "trf", "dogbox"]:

After Change


                                  bounds=bounds, method=method)

            // If the initial guess is ignored, then popt_2 would be close 0.
            assert_allclose(popt_1, popt_2)


class TestFixedPoint(TestCase):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: scipy/scipy
Commit Name: 24986bcc156abd807770d0cde6f45d6f8df08968
Time: 2016-01-17
Author: nikolay.mayorov@zoho.com
File Name: scipy/optimize/tests/test_minpack.py
Class Name: TestCurveFit
Method Name: test_bounds_p0


Project Name: nilearn/nilearn
Commit Name: a62c134e800b14666da14e7ffa82bb7f91f9b2cb
Time: 2013-08-26
Author: philippe.gervais@inria.fr
File Name: nisl/honorio_samaras.py
Class Name:
Method Name: honorio_samaras


Project Name: nilearn/nilearn
Commit Name: 6704c535b8c59ab3b9b98c0489a051654c1ee727
Time: 2013-04-05
Author: philippe.gervais@inria.fr
File Name: nisl/tests/test_signals.py
Class Name:
Method Name: test_clean_detrending


Project Name: scipy/scipy
Commit Name: 0d1e86735d9ee4d1d2834c813b654dc8a479ee8c
Time: 2018-04-03
Author: warren.weckesser@gmail.com
File Name: scipy/special/tests/test_basic.py
Class Name: TestCephes
Method Name: test_chndtr