source: orange/Orange/doc/modules/tree1.py @ 9671:a7b056375472

Revision 9671:a7b056375472, 392 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

Line 
1# Author:      J Zabkar
2# Version:     1.0
3# Description: Demostration of use of orngTree module: prin out
4#              a tree in text and dot format
5# Category:    modelling
6# Uses:        iris
7# Referenced:  orngTree.htm
8
9import orange, orngTree
10data = orange.ExampleTable("iris.tab")
11tree = orange.TreeLearner(data)
12orngTree.printTree(tree)
13orngTree.printDot(tree, fileName="tree1.dot")
Note: See TracBrowser for help on using the repository browser.