Changeset 9919:8a2a770ef3af in orange for Orange/misc/testing.py


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

data.variable -> feature

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/misc/testing.py

    r9671 r9919  
    358358        """ Default test case for Orange learners. 
    359359        """ 
    360         if isinstance(dataset.domain.class_var, Orange.data.variable.Discrete): 
     360        if isinstance(dataset.domain.class_var, Orange.feature.Discrete): 
    361361            indices = _MakeRandomIndices2(p0=0.3, stratified=True)(dataset) 
    362362        else: 
     
    410410         
    411411        for ex in test: 
    412             if isinstance(dataset.domain.class_var, Orange.data.variable.Continuous): 
     412            if isinstance(dataset.domain.class_var, Orange.feature.Continuous): 
    413413                # Test to third digit after the decimal point 
    414414                self.assertAlmostEqual(classifier(ex, orange.GetValue).native(), 
Note: See TracChangeset for help on using the changeset viewer.