source: orange/docs/tutorial/rst/code/regression.py @ 11052:c22077a09e63

Revision 11052:c22077a09e63, 221 bytes checked in by blaz <blaz.zupan@…>, 16 months ago (diff)

new tutorial

Line 
1import Orange
2
3data = Orange.data.Table("housing")
4learner = Orange.regression.linear.LinearRegressionLearner()
5model = learner(data)
6
7print "pred obs"
8for d in data[:3]:
9    print "%.1f %.1f" % (model(d), d.get_class())
Note: See TracBrowser for help on using the repository browser.