source: orange/docs/reference/rst/code/discretization-table.py @ 10660:aff66a28f7af

Revision 10660:aff66a28f7af, 295 bytes checked in by mstajdohar, 2 years ago (diff)

Fixed attribute name.

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