Ignore:
Files:
1 added
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • Orange/__init__.py

    r9944 r9986  
    1919_import("data.io") 
    2020_import("data.sample") 
     21_import("data.utils") 
    2122_import("data.discretization") 
    2223 
  • Orange/data/utils.py

    r9936 r9986  
    1 """\ 
    2 ************************** 
    3 Data Utilities (``utils``) 
    4 ************************** 
    5  
    6 Common operations on :class:`Orange.data.Table`. 
    7  
    8 """ 
    91#from __future__ import absolute_import 
     2 
     3from Orange.core import TransformValue, \ 
     4    Ordinal2Continuous, \ 
     5    Discrete2Continuous, \ 
     6    NormalizeContinuous, \ 
     7    MapIntValue 
     8 
    109 
    1110import random 
  • Orange/fixes/fix_changed_names.py

    r9942 r9986  
    586586           "orange.RandomGenerator": "Orange.misc.Random", 
    587587 
     588           "orange.TransformValue": "Orange.data.utils.TransformValue", 
     589           "orange.Ordinal2Continuous": "Orange.data.utils.Ordinal2Continuous", 
     590           "orange.Discrete2Continuous": "Orange.data.utils.Discrete2Continuous", 
     591           "orange.NormalizeContinuous": "Orange.data.utils.NormalizeContinuous", 
     592           "orange.MapIntValue": "Orange.data.utils.MapIntValue", 
     593 
    588594           } 
    589595 
  • docs/reference/rst/Orange.data.rst

    r9941 r9986  
    1313    Orange.data.discretization 
    1414    Orange.data.continuization 
     15    Orange.data.utils 
  • docs/reference/rst/code/transformvalue-d2c.py

    r9970 r9987  
    55 
    66e1 = Orange.feature.Continuous("e=1") 
    7 e1.getValueFrom = Orange.core.ClassifierFromVar(whichVar=data.domain["e"]) 
    8 e1.getValueFrom.transformer = Orange.core.Discrete2Continuous() 
     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")) 
  • 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 
  • docs/reference/rst/code/transformvalue-nc.py

    r9924 r9986  
    88    attr_c = Orange.feature.Continous(attr.name+"_n") 
    99    attr_c.getValueFrom = Orange.core.ClassifierFromVar(whichVar = attr) 
    10     transformer = Orange.core.NormalizeContinuous() 
     10    transformer = Orange.data.utils.NormalizeContinuous() 
    1111    attr_c.getValueFrom.transformer = transformer 
    1212    transformer.average = domstat[attr].avg 
  • 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.