source: orange/docs/reference/rst/code/discretization-table-method.py @ 9988:4e1229e347ca

Revision 9988:4e1229e347ca, 327 bytes checked in by blaz <blaz.zupan@…>, 2 years ago (diff)

Polished discretization scripts.

Line 
1import Orange
2iris = Orange.data.Table("iris.tab")
3disc = Orange.data.discretization.DiscretizeTable()
4disc.method = Orange.feature.discretization.EqualFreq(numberOfIntervals=2)
5disc_iris = disc(iris)
6
7print "Original data set:"
8for e in iris[:3]:
9    print e
10
11print "Discretized data set:"
12for e in disc_iris[:3]:
13    print e
Note: See TracBrowser for help on using the repository browser.