bdaae33d6e345738f9d55c777e04ad121f63b1ff,Orange/tests/test_sgd.py,SGDRegressionTest,test_SGDRegression,#SGDRegressionTest#,9

Before Change



class SGDRegressionTest(unittest.TestCase):
    def test_SGDRegression(self):
        nrows = 500
        ncols = 5
        x = np.sort(10 * np.random.rand(nrows, ncols))
        y = np.sum(np.sin(x), axis=1).reshape(nrows, 1)
        x1, x2 = np.split(x, 2)
        y1, y2 = np.split(y, 2)
        t = Orange.data.Table(x1, y1)
        learn = Orange.regression.SGDRegressionLearner()
        clf = learn(t)
        z = clf(x2)

After Change


        data = Orange.data.Table(X, y)
        sgd = Orange.regression.SGDRegressionLearner()
        res = Orange.evaluation.CrossValidation(data, [sgd], k=3)
        self.assertTrue(Orange.evaluation.RMSE(res)[0] < 0.1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 13

Instances


Project Name: biolab/orange3
Commit Name: bdaae33d6e345738f9d55c777e04ad121f63b1ff
Time: 2015-02-09
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_sgd.py
Class Name: SGDRegressionTest
Method Name: test_SGDRegression


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


Project Name: biolab/orange3
Commit Name: bdaae33d6e345738f9d55c777e04ad121f63b1ff
Time: 2015-02-09
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_sgd.py
Class Name: SGDRegressionTest
Method Name: test_SGDRegression


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