source: orange/docs/reference/rst/code/discretization-table-method.py @ 9812:a810dc61169e

Revision 9812:a810dc61169e, 340 bytes checked in by blaz <blaz.zupan@…>, 2 years ago (diff)

polished discretization

Line 
1import Orange
2iris = Orange.data.Table("iris.tab")
3disc = Orange.feature.discretization.DiscretizeTable()
4disc.method = Orange.feature.discretization.EquiNDiscretization(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.