1. biolab
  2. Untitled project
  3. orange

Commits

Aleš Erjavec  committed 52dbb52

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

  • Participants
  • Parent commits 67a7f94
  • Branches default

Comments (0)

Files changed (1)

File Orange/testing/unit/tests/test_tree.py

View file
 
 @datasets_driven(datasets=testing.CLASSIFICATION_DATASETS)
 class TestClassification(testing.LearnerTestCase):
-    LEARNER = ctree.TreeLearner()
+    LEARNER = ctree.TreeLearner(max_depth=50)
 
 
 @datasets_driven(datasets=testing.REGRESSION_DATASETS)
 class TestRegression(testing.LearnerTestCase):
-    LEARNER = rtree.TreeLearner()
+    LEARNER = rtree.TreeLearner(max_depth=50)
 
 if __name__ == "__main__":
     unittest.main()