Changeset 7690:da3cf88f1542 in orange


Ignore:
Timestamp:
02/17/11 17:01:00 (3 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
99b879b91bd3cf009ff1b0a41ed27d488122be7a
Message:
  • fixed CN2SDUnorderedLearner base class init and call calls
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/classification/rules.py

    r7675 r7690  
    947947    def __init__(self, evaluator = WRACCEvaluator(), beamWidth = 5, 
    948948                alpha = 0.05, mult=0.7, **kwds): 
    949         CN2UnorderedLearnerClass.__init__(self, evaluator = evaluator, 
     949        CN2UnorderedLearner.__init__(self, evaluator = evaluator, 
    950950                                          beamWidth = beamWidth, alpha = alpha, **kwds) 
    951951        self.coverAndRemove = CovererAndRemover_MultWeights(mult=mult) 
     
    955955         
    956956        oldInstances = Orange.data.Table(instances) 
    957         classifier = CN2UnorderedLearnerClass.__call__(self,instances,weight) 
     957        classifier = CN2UnorderedLearner.__call__(self,instances,weight) 
    958958        for r in classifier.rules: 
    959959            r.filterAndStore(oldInstances,weight,r.classifier.defaultVal) 
Note: See TracChangeset for help on using the changeset viewer.