source: orange/docs/tutorial/rst/code/classification-classifier1.py @ 11052:c22077a09e63

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

new tutorial

Line 
1import Orange
2
3data = Orange.data.Table("voting")
4classifier = Orange.classification.bayes.NaiveLearner(data)
5for d in data[:5]:
6    c = classifier(d)
7    print "%10s; originally %s" % (classifier(d), d.getclass())
Note: See TracBrowser for help on using the repository browser.