source: orange/orange/doc/ofb/ @ 6538:a5f65d7f0b2c

Revision 6538:a5f65d7f0b2c, 374 bytes checked in by Mitar <Mitar@…>, 4 years ago (diff)

Made XPM version of the icon 32x32.

1# Description: Read data, build naive Bayesian classifier and classify first few instances
2# Category:    modelling
3# Uses:
4# Referenced:  c_basics.htm
6import orange
7data = orange.ExampleTable("voting")
8classifier = orange.BayesLearner(data)
9for i in range(5):
10    c = classifier(data[i])
11    print "%d: %s (originally %s)" % (i+1, c, data[i].getclass())
Note: See TracBrowser for help on using the repository browser.