Ignore:
Timestamp:
07/15/13 14:55:24 (9 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed pickling of Boosted/Bagged/StackedLearner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/ensemble/boosting.py

    r10654 r11630  
    9292        return BoostedClassifier(classifiers = classifiers, name=self.name,  
    9393            class_var=instances.domain.class_var) 
     94 
     95    def __reduce__(self): 
     96        return type(self), (self.learner,), dict(self.__dict__) 
     97 
    9498BoostedLearner = Orange.utils.deprecated_members({"examples":"instances", "classVar":"class_var", "weightId":"weigth_id", "origWeight":"orig_weight"})(BoostedLearner) 
    9599 
Note: See TracChangeset for help on using the changeset viewer.