6993ef8bcf62f1e9c33a1a7b25b835e6406b0725,Orange/tests/test_svm.py,SVMTest,test_SVM,#SVMTest#,16
Before Change
self.data.shuffle()
def test_SVM(self):
n = int(0.7*self.data.X.shape[0])
learn = SVMLearner()
clf = learn(self.data[:n])
z = clf(self.data[n:])
self.assertTrue(np.sum(z.reshape((-1, 1)) == self.data.Y[n:]) > 0.7*len(z))
def test_LinearSVM(self):
n = int(0.7*self.data.X.shape[0])
After Change
def test_SVM(self):
learn = SVMLearner()
res = Orange.evaluation.CrossValidation(self.data, [learn], k=2)
self.assertGreater(Orange.evaluation.CA(res)[0], 0.9)
def test_LinearSVM(self):
learn = LinearSVMLearner()
res = Orange.evaluation.CrossValidation(self.data, [learn], k=2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 16
Instances
Project Name: biolab/orange3
Commit Name: 6993ef8bcf62f1e9c33a1a7b25b835e6406b0725
Time: 2015-02-16
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_svm.py
Class Name: SVMTest
Method Name: test_SVM
Project Name: biolab/orange3
Commit Name: 6993ef8bcf62f1e9c33a1a7b25b835e6406b0725
Time: 2015-02-16
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_svm.py
Class Name: SVMTest
Method Name: test_NuSVM
Project Name: biolab/orange3
Commit Name: 6993ef8bcf62f1e9c33a1a7b25b835e6406b0725
Time: 2015-02-16
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_svm.py
Class Name: SVMTest
Method Name: test_LinearSVM