09c97488c0aae828261938c118b87c13ef29c705,tests/tests.py,TestEverything,test_single_force_break_point1,#TestEverything#,105
Before Change
my_fit = pwlf.PiecewiseLinFit(self.x_small, self.y_small)
x_c = [-0.5]
y_c = [-0.5]
ssr = my_fit.fit_with_breaks_force_points([0.2, 0.7], x_c, y_c)
yhat = my_fit.predict(x_c)
self.assertTrue(np.isclose(y_c, yhat))
def test_single_force_break_point2(self):
After Change
my_fit = pwlf.PiecewiseLinFit(self.x_small, self.y_small)
x_c = [-0.5]
y_c = [-0.5]
my_fit.fit_with_breaks_force_points([0.2, 0.7], x_c, y_c)
yhat = my_fit.predict(x_c)
self.assertTrue(np.isclose(y_c, yhat))
def test_single_force_break_point2(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: cjekel/piecewise_linear_fit_py
Commit Name: 09c97488c0aae828261938c118b87c13ef29c705
Time: 2019-04-04
Author: cjekel@gmail.com
File Name: tests/tests.py
Class Name: TestEverything
Method Name: test_single_force_break_point1
Project Name: cjekel/piecewise_linear_fit_py
Commit Name: 09c97488c0aae828261938c118b87c13ef29c705
Time: 2019-04-04
Author: cjekel@gmail.com
File Name: tests/teststf.py
Class Name: TestEverything
Method Name: test_single_force_break_point1
Project Name: cjekel/piecewise_linear_fit_py
Commit Name: 09c97488c0aae828261938c118b87c13ef29c705
Time: 2019-04-04
Author: cjekel@gmail.com
File Name: tests/tests.py
Class Name: TestEverything
Method Name: test_single_force_break_point2
Project Name: cjekel/piecewise_linear_fit_py
Commit Name: 09c97488c0aae828261938c118b87c13ef29c705
Time: 2019-04-04
Author: cjekel@gmail.com
File Name: tests/teststf.py
Class Name: TestEverything
Method Name: test_single_force_break_point2