df764e2aaceee6d92523d483d2ccc0063ea6b35f,Orange/tests/test_naive_bayes.py,NaiveBayesTest,test_BayesStorage,#NaiveBayesTest#,25

Before Change


        x = np.random.random_integers(0, 5, (nrows, ncols))
        x[:, 0] = np.ones(nrows) * 3
        y = x[:, ncols / 2].reshape(nrows, 1)
        x1, x2 = np.split(x, 2)
        y1, y2 = np.split(y, 2)
        t1 = data.Table(x1, y1)
        t2 = data.Table(x2, y2)
        learn = nb.BayesStorageLearner()
        clf = learn(t1)
        z2 = clf(x2)
        ca = scoring.CA(t2, z2)
        self.assertGreater(ca, 0.5)

After Change


        y = x[:, ncols / 2].reshape(nrows, 1)
        table = data.Table(x, y)
        bayes = nb.BayesStorageLearner()
        results = testing.CrossValidation(table, [bayes], k=10)
        ca = scoring.CA(results)
        self.assertGreater(ca, 0.5)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: biolab/orange3
Commit Name: df764e2aaceee6d92523d483d2ccc0063ea6b35f
Time: 2014-06-20
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_naive_bayes.py
Class Name: NaiveBayesTest
Method Name: test_BayesStorage


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_SVR


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_NuSVR