262e19a4983a6d55de4c779137b94c1f43e2d9dc,tests/test_minlip.py,TestToyCvxpyExample,test_toy_minlip_predict_2_cvxpy,#TestToyCvxpyExample#,258

Before Change


        m.fit(x, y)

        p = m.predict(numpy.array([[3, 4], [41, 29]]))
        assert_array_almost_equal(numpy.array([-0.341626, -5.374394]), p, decimal=5)

    def test_toy_hinge_fit(self, toy_data):
        x, y = toy_data
        m = self.svm_model

After Change


        m.set_params(pairs="next")
        y = y.copy()
        y["time"] = numpy.arange(1, 7)
        sd = numpy.std(x, axis=0)
        m.fit(x / sd, y)

        p = m.predict(toy_test_data / sd)
        expected = numpy.array([-0.033523879826, -1.878228488294, -2.410824233892])
        assert_array_almost_equal(expected, p, decimal=5)

    def test_toy_hinge_fit(self, toy_data):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 8

Instances


Project Name: sebp/scikit-survival
Commit Name: 262e19a4983a6d55de4c779137b94c1f43e2d9dc
Time: 2019-02-26
Author: sebp@k-d-w.org
File Name: tests/test_minlip.py
Class Name: TestToyCvxpyExample
Method Name: test_toy_minlip_predict_2_cvxpy


Project Name: sebp/scikit-survival
Commit Name: 262e19a4983a6d55de4c779137b94c1f43e2d9dc
Time: 2019-02-26
Author: sebp@k-d-w.org
File Name: tests/test_minlip.py
Class Name: TestToyCvxpyExample
Method Name: test_toy_hinge_nearest_predict_cvxpy


Project Name: sebp/scikit-survival
Commit Name: 262e19a4983a6d55de4c779137b94c1f43e2d9dc
Time: 2019-02-26
Author: sebp@k-d-w.org
File Name: tests/test_minlip.py
Class Name: TestToyCvxpyExample
Method Name: test_toy_hinge_predict_cvxpy