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

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

polished discretization

Line 
1import Orange
2data = Orange.data.Table("iris.tab")
3
4idisc = Orange.feature.discretization.IntervalDiscretizer(points = [4.8, 5.0])
5sep_l = idisc.construct_variable(data.domain["sepal length"])
6new_data = data.select([data.domain["sepal length"], sep_l, data.domain.classVar])
7for e in new_data[:5]:
8    print e
Note: See TracBrowser for help on using the repository browser.