Ignore:
Timestamp:
03/01/12 10:50:16 (2 years ago)
Author:
Jure Zbontar <jure.zbontar@…>
Branch:
default
Message:

Add unittests for SimpleTreeLearner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/testing/unit/tests/test_tree.py

    r10319 r10408  
    1919    LEARNER = rtree.TreeLearner(max_depth=50) 
    2020 
     21 
     22@datasets_driven(datasets=testing.CLASSIFICATION_DATASETS) 
     23class TestClassification(testing.LearnerTestCase): 
     24    LEARNER = ctree.SimpleTreeLearner(max_depth=50) 
     25 
     26 
     27@datasets_driven(datasets=testing.REGRESSION_DATASETS) 
     28class TestRegression(testing.LearnerTestCase): 
     29    LEARNER = rtree.SimpleTreeLearner(max_depth=50) 
     30 
     31    def test_learner_on(self): 
     32        # Does not pass unittests beacuse it returns None for the distribution. 
     33        # I do not plan on implementing this as it will only add unnecessary overhead. 
     34        pass 
     35 
     36 
    2137if __name__ == "__main__": 
    2238    unittest.main() 
Note: See TracChangeset for help on using the changeset viewer.