source: orange/docs/tutorial/rst/code/regression1.py @ 9374:59bac7ddd8a2

Revision 9374:59bac7ddd8a2, 355 bytes checked in by mitar, 2 years ago (diff)

Tutorial documentation structure.

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("housing")
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.