6993ef8bcf62f1e9c33a1a7b25b835e6406b0725,Orange/tests/test_svm.py,SVMTest,test_OneClassSVM,#SVMTest#,63
Before Change
x2 = np.r_[x2 + 2, x2 - 2]
learn = OneClassSVMLearner(kernel="rbf", nu=0.1, gamma=0.1)
clf = learn(t)
z = clf(x2)
self.assertTrue(np.sum(z == 1) > 0.7*len(z))
After Change
X = np.r_[X + 2, X - 2]
table = Orange.data.Table(X, None)
learn = OneClassSVMLearner(kernel="rbf")
m = learn(table[:100])
z = m(table[100:])
self.assertTrue(0.1 < np.sum(z == 1) < 0.5 * len(z))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
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_OneClassSVM
Project Name: DistrictDataLabs/yellowbrick
Commit Name: 26380a2bbbedeaf8ce476dfa60e99f0448f06700
Time: 2019-04-18
Author: rebeccabilbro@users.noreply.github.com
File Name: docs/tutorial.py
Class Name:
Method Name:
Project Name: biolab/orange3
Commit Name: 15688455310d8b6de97ff1c36157cf198bff0e5c
Time: 2014-07-28
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_naive_bayes.py
Class Name: NaiveBayesTest
Method Name: test_NaiveBayes