python/test: Dump classification tree to text file too.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user