Mesa (master): python/test: Limit tree depth.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Tue Mar 31 17:39:39 UTC 2009


Module: Mesa
Branch: master
Commit: 71384f29f12ab599b4430802ec8e21056a4dd60f
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=71384f29f12ab599b4430802ec8e21056a4dd60f

Author: José Fonseca <jfonseca at vmware.com>
Date:   Tue Mar 31 17:23:48 2009 +0100

python/test: Limit tree depth.

---

 src/gallium/state_trackers/python/tests/base.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/state_trackers/python/tests/base.py b/src/gallium/state_trackers/python/tests/base.py
index 585fbba..6b2e702 100644
--- a/src/gallium/state_trackers/python/tests/base.py
+++ b/src/gallium/state_trackers/python/tests/base.py
@@ -329,6 +329,6 @@ class TestResult:
 
         tree = orngTree.TreeLearner(data, sameMajorityPruning=1, mForPruning=2)
 
-        orngTree.printTxt(tree)
+        orngTree.printTxt(tree, maxDepth=4)
 
         orngTree.printDot(tree, fileName=name+'.dot', nodeShape='ellipse', leafShape='box')




More information about the mesa-commit mailing list