09c97488c0aae828261938c118b87c13ef29c705,tests/teststf.py,TestEverything,test_break_point_spot_on_r2,#TestEverything#,46

Before Change


        // test r squared value with known solution
        my_fit1 = pwlf.PiecewiseLinFitTF(self.x_small, self.y_small)
        x0 = self.x_small.copy()
        ssr = my_fit1.fit_with_breaks(x0)
        rsq = my_fit1.r_squared()
        self.assertTrue(np.isclose(rsq, 1.0))

    def test_break_point_diff_x0_0(self):

After Change


        // test r squared value with known solution
        my_fit1 = pwlf.PiecewiseLinFitTF(self.x_small, self.y_small)
        x0 = self.x_small.copy()
        my_fit1.fit_with_breaks(x0)
        rsq = my_fit1.r_squared()
        self.assertTrue(np.isclose(rsq, 1.0))

    def test_break_point_diff_x0_0(self):
Italian Trulli
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/teststf.py
Class Name: TestEverything
Method Name: test_break_point_spot_on_r2


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_predict


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_break_point_spot_on_r2


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_predict