Ignore:
Timestamp:
03/20/12 08:18:01 (2 years ago)
Author:
markotoplak
Branch:
default
rebase_source:
5f093927cfe99adbb8b562a712db8e15d1b77c82
Message:

Moved some other scripts from misc to utils and Orange imports and canvas not works, although not systematically tested.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/ensemble/forest.py

    r10580 r10581  
    3434    split is  (on average) as specified.""" 
    3535 
    36     __new__ = Orange.misc._orange__new__(Orange.core.Learner) 
     36    __new__ = Orange.utils._orange__new__(Orange.core.Learner) 
    3737 
    3838    def __init__(self, base=None, rand=None): #pickle needs an empty init 
     
    102102    """ 
    103103 
    104     __new__ = Orange.misc._orange__new__(Orange.core.Learner) 
     104    __new__ = Orange.utils._orange__new__(Orange.core.Learner) 
    105105 
    106106    def __init__(self, trees=100, attributes=None,\ 
     
    119119        if not self.rand: 
    120120            self.rand = random.Random(0) 
    121         self.randorange = Orange.misc.Random(self.rand.randint(0,2**31-1)) 
     121        self.randorange = Orange.utils.Random(self.rand.randint(0,2**31-1)) 
    122122 
    123123        if learner == None: 
     
    313313        if not self.rand: 
    314314            self.rand = random.Random(0) 
    315         self.randorange = Orange.misc.Random(self.rand.randint(0,2**31-1)) 
     315        self.randorange = Orange.utils.Random(self.rand.randint(0,2**31-1)) 
    316316 
    317317        if learner == None: 
     
    477477    """ 
    478478 
    479     __new__ = Orange.misc._orange__new__(Orange.core.Learner) 
     479    __new__ = Orange.utils._orange__new__(Orange.core.Learner) 
    480480      
    481481    def __init__(self, base, rand): 
Note: See TracChangeset for help on using the changeset viewer.