11d8e35daf491cd80dc62ecdc1767ee97d884c5a,Orange/tests/test_classification.py,MultiClassTest,test_unsupported,#MultiClassTest#,13

Before Change


        // multiple class variables
        y = np.random.random_integers(10, 11, (nrows, 2))
        t = data.Table(x, y)
        learn = dummies.DummyLearner()
        with self.assertRaises(TypeError):
            clf = learn(t)

        // single class variable
        y = np.random.random_integers(10, 11, (nrows, 1))
        t = data.Table(x, y)
        learn = dummies.DummyLearner()
        clf = learn(t)
        z = clf(x)
        self.assertEqual(z.ndim, 1)

After Change


        // single class variable
        y = np.random.random_integers(10, 11, (nrows, 1))
        t = data.Table(x, y)
        learn = DummyLearner()
        clf = learn(t)
        z = clf(x)
        self.assertEqual(z.ndim, 1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: biolab/orange3
Commit Name: 11d8e35daf491cd80dc62ecdc1767ee97d884c5a
Time: 2014-08-06
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_classification.py
Class Name: MultiClassTest
Method Name: test_unsupported


Project Name: biolab/orange3
Commit Name: 11d8e35daf491cd80dc62ecdc1767ee97d884c5a
Time: 2014-08-06
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_classification.py
Class Name: MultiClassTest
Method Name: test_unsupported


Project Name: biolab/orange3
Commit Name: 11d8e35daf491cd80dc62ecdc1767ee97d884c5a
Time: 2014-08-06
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_classification.py
Class Name: ModelTest
Method Name: test_probs_from_value


Project Name: biolab/orange3
Commit Name: 11d8e35daf491cd80dc62ecdc1767ee97d884c5a
Time: 2014-08-06
Author: lan.zagar@fri.uni-lj.si
File Name: Orange/tests/test_classification.py
Class Name: ModelTest
Method Name: test_value_from_probs