Changeset 10319:52dbb52f9791 in orange


Ignore:
Timestamp:
02/20/12 12:03:42 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
rebase_source:
899d7bfed8e8e796a27df8ccf41bf343cb582be8
Message:

Added max_depth=50 parameter to tree learners in test_tree.py (the pickling test can result in a max recursion error).

File:
1 edited

Legend:

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

    r10278 r10319  
    1212@datasets_driven(datasets=testing.CLASSIFICATION_DATASETS) 
    1313class TestClassification(testing.LearnerTestCase): 
    14     LEARNER = ctree.TreeLearner() 
     14    LEARNER = ctree.TreeLearner(max_depth=50) 
    1515 
    1616 
    1717@datasets_driven(datasets=testing.REGRESSION_DATASETS) 
    1818class TestRegression(testing.LearnerTestCase): 
    19     LEARNER = rtree.TreeLearner() 
     19    LEARNER = rtree.TreeLearner(max_depth=50) 
    2020 
    2121if __name__ == "__main__": 
Note: See TracChangeset for help on using the changeset viewer.