262e19a4983a6d55de4c779137b94c1f43e2d9dc,tests/test_minlip.py,TestToyCvxpyExample,test_toy_hinge_predict_cvxpy,#TestToyCvxpyExample#,280
Before Change
m = self.svm_model
m.fit(x, y)
p = m.predict(numpy.array([[3, 4], [41, 29]]))
assert_array_almost_equal(numpy.array([-0.34162189, -5.37433203]), p, decimal=5)
def test_toy_hinge_nearest_fit(self, toy_data):
x, y = toy_data
After Change
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 test_toy_hinge_nearest_fit(self, toy_data):
x, y = toy_data
m = self.svm_model
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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_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_nearest_predict_cvxpy