262e19a4983a6d55de4c779137b94c1f43e2d9dc,tests/test_minlip.py,TestToyCvxpyExample,test_toy_hinge_nearest_predict_cvxpy,#TestToyCvxpyExample#,300

Before Change


        m.set_params(pairs="nearest")
        m.fit(x, y)

        p = m.predict(numpy.array([[3, 4], [41, 29]]))
        assert_array_almost_equal(numpy.array([-0.3416230366, -5.3743455497]), p)


def has_cvxopt():

After Change


        x, y = toy_data
        m = self.svm_model
        m.set_params(pairs="nearest")
        sd = numpy.std(x, axis=0)
        m.fit(x / sd, y)

        p = m.predict(toy_test_data / sd)
        expected = numpy.array([-0.090550891252, -4.213744335308, -5.252123739017])
        assert_array_almost_equal(expected, p, decimal=5)


def has_cvxopt():
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 19

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_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_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_predict_cvxpy