source: orange/docs/reference/rst/code/transformvalue-d2c.py @ 9945:ba7e22d4ebc5

Revision 9945:ba7e22d4ebc5, 323 bytes checked in by markotoplak, 2 years ago (diff)

Modernized some example scripts.

Line 
1import Orange.data
2import Orange.feature
3
4data = Orange.data.Table("monk1")
5
6e1 = Orange.feature.Continuous("e=1")
7e1.getValueFrom = Orange.core.ClassifierFromVar(whichVar = data.domain["e"])
8e1.getValueFrom.transformer = Orange.core.Discrete2Continuous()
9e1.getValueFrom.transformer.value = int(Orange.data.Value(e, "1"))
Note: See TracBrowser for help on using the repository browser.