source: orange/Orange/testing/regression/tests_20/modules_tree1.py @ 9952:986e9cd806f4

Revision 9952:986e9cd806f4, 392 bytes checked in by Miha Stajdohar <miha.stajdohar@…>, 2 years ago (diff)

Tests moved and renamed from orange 20.

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.