python/test: Dump classification tree to text file too.

This commit is contained in:
José Fonseca
2009-03-31 18:38:48 +01:00
parent fee78c0c1f
commit f784906eb9
2 changed files with 4 additions and 0 deletions
@@ -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')
@@ -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')