source: orange/orange/doc/modules/tree1.py @ 6538:a5f65d7f0b2c

Revision 6538:a5f65d7f0b2c, 392 bytes checked in by Mitar <Mitar@…>, 4 years ago (diff)

Made XPM version of the icon 32x32.

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.