Ignore:
Timestamp:
02/07/12 21:48:58 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

Added value transfromers to the hierarchy.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/reference/rst/code/transformvalue-o2c.py

    r9924 r9986  
    1313age_c = Orange.feature.Continuous("age_c") 
    1414age_c.getValueFrom = Orange.core.ClassifierFromVar(whichVar = age) 
    15 age_c.getValueFrom.transformer = Orange.core.Ordinal2Continuous() 
     15age_c.getValueFrom.transformer = Orange.data.utils.Ordinal2Continuous() 
    1616 
    1717age_cn = Orange.feature.Continuous("age_cn") 
    1818age_cn.getValueFrom = Orange.core.ClassifierFromVar(whichVar = age) 
    19 age_cn.getValueFrom.transformer = Orange.core.Ordinal2Continuous() 
     19age_cn.getValueFrom.transformer = Orange.data.utils.Ordinal2Continuous() 
    2020age_cn.getValueFrom.transformer.factor = 0.5 
    2121 
Note: See TracChangeset for help on using the changeset viewer.