source: orange/docs/reference/rst/code/transformvalue-d2c.py @ 9987:ef314aee8709

Revision 9987:ef314aee8709, 331 bytes checked in by markotoplak, 2 years ago (diff)

Merge.

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