Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/tuning/__init__.py

    r10712 r11459  
    9595    def __new__(cls, data=None, weight_id=0, **argkw): 
    9696        self = Orange.classification.Learner.__new__(cls, **argkw) 
    97         if data: 
     97        if data is not None: 
    9898            for name, value in argkw.items(): 
    9999                setattr(self, name, value) 
     
    346346    def __new__(cls, data=None, weight_id=0, **kwds): 
    347347        self = Orange.classification.Learner.__new__(cls, **kwds) 
    348         if data: 
     348        if data is not None: 
    349349            self.__init__(**kwargs) 
    350350            return self.__call__(data, weight_id) 
     
    443443    def __new__(cls, data=None, weight_id=0, **kwds): 
    444444        self = Orange.classification.Learner.__new__(cls, **kwds) 
    445         if data: 
     445        if data is not None: 
    446446            self.__init__(**kwds) 
    447447            return self.__call__(data, weight_id) 
Note: See TracChangeset for help on using the changeset viewer.