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

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

polished discretization

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