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
def f(x, a):
return np.sin(x + a)
xdata = np.linspace(-2*np.pi, 2*np.pi, 40)
ydata = np.sin(xdata)
bounds = (-3 * np.pi, 3 * np.pi)
for method in ["trf", "dogbox"]:
popt_1, _ = curve_fit(f, xdata, ydata, p0=2.1*np.pi)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
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: enthought/chaco
Commit Name: 97de926824b3f5cc711c42d6f81f11042b7bad7c
Time: 2007-11-29
Author: bryanv@651a555e-23ca-0310-84fe-ca9f7c59d2ea
File Name: examples/basic/cmap_image_plot.py
Class Name: PlotFrame
Method Name: _create_window
Project Name: brian-team/brian2
Commit Name: a37003a49a6294a1902d353f53e0620f923f96ab
Time: 2016-04-18
Author: marcel.stimberg@inserm.fr
File Name: examples/frompapers/Brette_2012/Fig4.py
Class Name:
Method Name: