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/distance/__init__.py

    r9916 r9923  
    3838    def __call__(self, table): 
    3939        indxs = [i for i, a in enumerate(table.domain.attributes) \ 
    40                  if a.varType==Orange.data.Type.Continuous] 
     40                 if a.varType==Orange.feature.Type.Continuous] 
    4141        return PearsonRDistance(domain=table.domain, indxs=indxs) 
    4242 
     
    8484    def __call__(self, table): 
    8585        indxs = [i for i, a in enumerate(table.domain.attributes) \ 
    86                  if a.varType==Orange.data.Type.Continuous] 
     86                 if a.varType==Orange.feature.Type.Continuous] 
    8787        return SpearmanRDistance(domain=table.domain, indxs=indxs) 
    8888 
     
    176176    def __call__(self, data): 
    177177        indxs = [i for i, a in enumerate(data.domain.attributes) \ 
    178                  if a.varType==Orange.data.Type.Continuous] 
     178                 if a.varType==Orange.feature.Type.Continuous] 
    179179        return PearsonRAbsoluteDistance(domain=data.domain, indxs=indxs) 
    180180     
     
    211211    def __call__(self, data): 
    212212        indxs = [i for i, a in enumerate(data.domain.attributes) \ 
    213                  if a.varType==Orange.data.Type.Continuous] 
     213                 if a.varType==Orange.feature.Type.Continuous] 
    214214        return SpearmanRAbsoluteDistance(domain=data.domain, indxs=indxs) 
    215215     
Note: See TracChangeset for help on using the changeset viewer.