source: orange/docs/reference/rst/code/transformvalue-d2c.py @ 9924:69d0ac45ad93

Revision 9924:69d0ac45ad93, 318 bytes checked in by janezd <janez.demsar@…>, 2 years ago (diff)

Added documentation on TransformValue

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.Value(e, "1"))
Note: See TracBrowser for help on using the repository browser.