Changeset 10565:51a6505b8231 in orange


Ignore:
Timestamp:
03/17/12 10:19:53 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
9fea0e9369dbce41d8a8201f4acadb3a4dbb1aa6
Message:

Fixed pickling of RandomForestLearner.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/ensemble/forest.py

    r10540 r10565  
    3636    __new__ = Orange.misc._orange__new__(Orange.core.Learner) 
    3737 
    38     def __init__(self, base, rand): 
     38    def __init__(self, base=None, rand=None): #pickle needs an empty init 
    3939        self.base = base 
    4040        self.attributes = None 
Note: See TracChangeset for help on using the changeset viewer.