Ignore:
Timestamp:
03/20/12 19:53:04 (2 years ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Changed the way callback function is called in RandomForestLearner (the way it is documented). Fixed the widgets correspondingly.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeWidgets/Prototypes/OWRandomForestOld.py

    r9671 r10587  
    150150        if self.data: 
    151151            learner = self.constructLearner() 
    152             pb = OWGUI.ProgressBar(self, iterations=self.trees) 
    153             learner.callback = pb.advance 
     152            self.progressBarInit() 
     153            learner.callback = lambda v: self.progressBarSet(100.0 * v) 
    154154            try: 
    155155                self.classifier = learner(self.data) 
     
    160160                self.classifier = None 
    161161                self.streeEnabled(False) 
    162             pb.finish() 
     162            self.progressBarFinished() 
    163163        else: 
    164164            self.classifier = None 
Note: See TracChangeset for help on using the changeset viewer.