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

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

Made XPM version of the icon 32x32.

1# Description: Test of naive bayesian classifier with entropy-based discretization (as defined in
2# Category:    modelling
3# Uses:
4# Classes:     orngTest.crossValidation, orngStat.CA
5# Referenced:  c_nb_disc.htm
7import orange, orngTest, orngStat, nbdisc
8data = orange.ExampleTable("iris")
9results = orngTest.crossValidation([nbdisc.Learner()], data, folds=10)
10print "Accuracy = %5.3f" % orngStat.CA(results)[0]
Note: See TracBrowser for help on using the repository browser.