11d8e35daf491cd80dc62ecdc1767ee97d884c5a,Orange/tests/test_classification.py,ExpandProbabilitiesTest,test_multi_class,#ExpandProbabilitiesTest#,144

Before Change


        self.prepareTable(rows, attr, vars, class_var_domain)
        y = np.random.random_integers(2, 5, (rows, vars)) * 2
        t = data.Table(self.domain, self.x, y)
        learn = dummies.DummyMulticlassLearner()
        clf = learn(t)
        z, p = clf(self.x, ret=Orange.classification.Model.ValueProbs)
        self.assertEqual(p.shape, (rows, vars, class_var_domain))
        self.assertTrue(np.all(z == np.argmax(p, axis=-1)))

After Change


        self.prepareTable(rows, attr, vars, class_var_domain)
        y = np.random.random_integers(2, 5, (rows, vars)) * 2
        t = data.Table(self.domain, self.x, y)
        learn = DummyMulticlassLearner()
        clf = learn(t)
        z, p = clf(self.x, ret=Orange.classification.Model.ValueProbs)
        self.assertEqual(p.shape, (rows, vars, class_var_domain))
        self.assertTrue(np.all(z == np.argmax(p, axis=-1)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

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: ExpandProbabilitiesTest
Method Name: test_multi_class


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_supported


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


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: SparseTest
Method Name: test_sparse_basket