796264a5e655d8b79be9cd0c1354473ae2d562e4,Orange/tests/test_classification.py,LearnerAccessibility,test_adequacy_all_learners_multiclass,#LearnerAccessibility#,425

Before Change



    def test_adequacy_all_learners_multiclass(self):
        for learner in all_learners():
            try:
                learner = learner()
                table = Table(test_filename("datasets/test8.tab"))
                self.assertRaises(ValueError, learner, table)
            except TypeError:
                traceback.print_exc()
                continue


class LearnerReprs(unittest.TestCase):
    def test_reprs(self):
        lr = LogisticRegressionLearner(tol=0.0002)
        m = MajorityLearner()

After Change


    def test_adequacy_all_learners_multiclass(self):
        for learner in all_learners():
            // calibration, threshold learners" __init__ require arguments
            if learner in (ThresholdLearner, CalibratedLearner):
                continue
            with self.subTest(learner.__name__):
                learner = learner()
                table = Table(test_filename("datasets/test8.tab"))
                self.assertRaises(ValueError, learner, table)


class LearnerReprs(unittest.TestCase):
    def test_reprs(self):
        lr = LogisticRegressionLearner(tol=0.0002)
        m = MajorityLearner()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: biolab/orange3
Commit Name: 796264a5e655d8b79be9cd0c1354473ae2d562e4
Time: 2020-09-11
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/tests/test_classification.py
Class Name: LearnerAccessibility
Method Name: test_adequacy_all_learners_multiclass


Project Name: biolab/orange3
Commit Name: 796264a5e655d8b79be9cd0c1354473ae2d562e4
Time: 2020-09-11
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/tests/test_classification.py
Class Name: UnknownValuesInPrediction
Method Name: test_missing_class


Project Name: biolab/orange3
Commit Name: 796264a5e655d8b79be9cd0c1354473ae2d562e4
Time: 2020-09-11
Author: janez.demsar@fri.uni-lj.si
File Name: Orange/tests/test_classification.py
Class Name: LearnerAccessibility
Method Name: test_adequacy_all_learners