source: orange/Orange/doc/ofb/regression1.py @ 9671:a7b056375472

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

Moved orange to Orange (part 2)

Line 
1# Description: Builds a regression tree and prints it out
2# Category:    modelling
3# Uses:        housing
4# Classes:     orngTree.TreeLearner
5# Referenced:  regression.htm
6
7import orange, orngTree
8
9data = orange.ExampleTable("../datasets/housing.tab")
10rt = orngTree.TreeLearner(data, measure="retis", mForPruning=2, minExamples=20)
11orngTree.printTxt(rt, leafStr="%V %I")
Note: See TracBrowser for help on using the repository browser.