Changeset 10048:5ea8751989ba in orange


Ignore:
Timestamp:
02/08/12 10:07:34 (2 years ago)
Author:
markotoplak
Branch:
default
Message:

data.variable -> feature (OWCorrelations)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Prototypes/OWCorrelations.py

    r9996 r10048  
    1313 
    1414import Orange 
    15 from Orange.data import variable 
     15import Orange.feature as variable 
    1616 
    1717def is_continuous(var): 
     
    104104     
    105105def matrix_to_table(matrix, items=None): 
    106     from Orange.data import variable 
    107106    if items is None: 
    108107        items = getattr(matrix, "items", None) 
     
    440439            if self.correlations_type == 2 and \ 
    441440                    is_continuous(self.target_variable): 
    442                 pearson, _ = variable.make("Pearson", Orange.core.VarTypes.Continuous) 
    443                 spearman, _ = variable.make("Spearman", Orange.core.VarTypes.Continuous) 
    444                 row_name, _ = variable.make("Variable", Orange.core.VarTypes.String) 
     441                pearson, _ = variable.Descriptor.make("Pearson", Orange.core.VarTypes.Continuous) 
     442                spearman, _ = variable.Descriptor.make("Spearman", Orange.core.VarTypes.Continuous) 
     443                row_name, _ = variable.Descriptor.make("Variable", Orange.core.VarTypes.String) 
    445444                 
    446445                domain = Orange.data.Domain([pearson, spearman], None) 
Note: See TracChangeset for help on using the changeset viewer.