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-miv.py

    r9924 r9986  
    66age_b = Orange.feature.Discrete("age_c", values = ['young', 'old']) 
    77age_b.getValueFrom = Orange.core.ClassifierFromVar(whichVar = age) 
    8 age_b.getValueFrom.transformer = Orange.core.MapIntValue() 
     8age_b.getValueFrom.transformer = Orange.data.utils.MapIntValue() 
    99age_b.getValueFrom.transformer.mapping = [0, 1, 1] 
    1010 
Note: See TracChangeset for help on using the changeset viewer.