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

data.variable -> feature.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/evaluation/testing.py

    r9914 r9923  
    109109            self.base_class = self.class_values = None 
    110110            if test_type==TEST_TYPE_SINGLE: 
    111                 if domain.class_var.var_type == Orange.data.Type.Discrete: 
     111                if domain.class_var.var_type == Orange.feature.Type.Discrete: 
    112112                    self.class_values = list(domain.class_var.values) 
    113113                    self.base_class = domain.class_var.base_value 
     
    117117            elif test_type==TEST_TYPE_MLC: 
    118118                self.labels = [var.name for var in domain.class_vars] 
    119                 self.converter = lambda vals: [int(val) if val.variable.var_type == Orange.data.Type.Discrete 
     119                self.converter = lambda vals: [int(val) if val.variable.var_type == Orange.feature.Type.Discrete 
    120120                                               else float(val) for val in vals] 
    121121 
Note: See TracChangeset for help on using the changeset viewer.