6993ef8bcf62f1e9c33a1a7b25b835e6406b0725,Orange/tests/test_svm.py,SVMTest,test_NuSVM,#SVMTest#,30
Before Change
self.assertTrue(np.sum(z.reshape((-1, 1)) == self.data.Y[n:]) > 0.7*len(z))
def test_NuSVM(self):
n = int(0.7*self.data.X.shape[0])
learn = NuSVMLearner(nu=0.01)
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_SVR(self):
nrows = 500
After Change
def test_NuSVM(self):
learn = NuSVMLearner(nu=0.01)
res = Orange.evaluation.CrossValidation(self.data, [learn], k=2)
self.assertGreater(Orange.evaluation.CA(res)[0], 0.9)
def test_SVR(self):
nrows, ncols = 200, 5
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 20
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_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_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_LinearSVM