source: orange/Orange/doc/ofb/ @ 9671:a7b056375472

Revision 9671:a7b056375472, 440 bytes checked in by anze <anze.staric@…>, 2 years ago (diff)

Moved orange to Orange (part 2)

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.