Orange Forum • View topic - question about orngTree.printDot

question about orngTree.printDot

Report bugs (or imagined bugs).
(Archived/read-only, please use our ticketing system for reporting bugs and their discussion.)
Forum rules
Archived/read-only, please use our ticketing system for reporting bugs and their discussion.

question about orngTree.printDot

Postby vim » Sat May 27, 2006 5:36

Example Script
for Classification Tree(
when I uncomment the last line of
the script returns a error...
I use the Latest snapshot for MS Windows
the looks...., a little of trouble?
the link AT&T's Graphviz is breaked,maybe
best regards.
17 print
18 orngTree.printTxt(tree)
---> 19 orngTree.printDot(tree, fileName='', internalNodeShape="ellipse", leafShape="box")

C:\Python23\lib\site-packages\orange\ in dotTree(tree, fileName, leafStr, nodeStr, leafShape, nodeShape, **argkw)
576 argkw.get("minExamples", 0), argkw.get("maxDepth", 1e10), argkw.get("simpleFirst", True),
577 tree,
--> 578 leafShape = leafShape, nodeShape = nodeShape, fle = fle).dotTree()
580 fle.write("}\n")

C:\Python23\lib\site-packages\orange\ in dotTree(self, internalName)
553 def dotTree(self, internalName="n"):
--> 554 fle.write("digraph G {\n")
555 dotTree0(fle, tree.tree, None, tree, internalName)
556 fle.write("}\n")

NameError: global name 'fle' is not defined
WARNING: Failure executing file: <>

In [3]:

Postby Janez » Tue May 30, 2006 12:28

Fixed. Thanks.

Return to Bugs