Ignore:
Timestamp:
04/17/13 18:30:16 (12 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed checks for passed dataset table argument in new methods.

Use 'instances is not None' idiom and not a boolean test to guard against cases
where the passed dataset length is 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/multilabel/br.py

    r10502 r11459  
    6767            self.base_learner = _BayesLearner 
    6868         
    69         if instances: 
     69        if instances is not None: 
    7070            self.__init__(**argkw) 
    7171            return self.__call__(instances, weight_id) 
Note: See TracChangeset for help on using the changeset viewer.