From: José Fonseca Date: Tue, 31 Mar 2009 17:38:48 +0000 (+0100) Subject: python/test: Dump classification tree to text file too. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f784906eb96ccda2062b53867a5d4bc52653396d;p=mesa.git python/test: Dump classification tree to text file too. --- diff --git a/src/gallium/state_trackers/python/tests/base.py b/src/gallium/state_trackers/python/tests/base.py index 6b2e702955f..1fa7fe6f3b3 100755 --- a/src/gallium/state_trackers/python/tests/base.py +++ b/src/gallium/state_trackers/python/tests/base.py @@ -331,4 +331,6 @@ class TestResult: orngTree.printTxt(tree, maxDepth=4) + file(name+'.txt', 'wt').write(orngTree.dumpTree(tree)) + orngTree.printDot(tree, fileName=name+'.dot', nodeShape='ellipse', leafShape='box') diff --git a/src/gallium/state_trackers/python/tests/tree.py b/src/gallium/state_trackers/python/tests/tree.py index 14b3599c6d7..0c1bcda4cf2 100755 --- a/src/gallium/state_trackers/python/tests/tree.py +++ b/src/gallium/state_trackers/python/tests/tree.py @@ -18,4 +18,6 @@ for arg in sys.argv[1:]: orngTree.printTxt(tree) + file(name+'.txt', 'wt').write(orngTree.dumpTree(tree) + '\n') + orngTree.printDot(tree, fileName=name+'.dot', nodeShape='ellipse', leafShape='box')