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/Regression/OWRandomForestRegression.py

    r9671 r10587  
    2626        if self.data: 
    2727            learner = self.constructLearner() 
    28             pb = OWGUI.ProgressBar(self, iterations=self.trees) 
    29             learner.callback = pb.advance 
     28            self.progressBarInit() 
     29            learner.callback = lambda v: self.progressBarSet(100.0 * v) 
    3030            try: 
    3131                self.classifier = learner(self.data) 
     
    3434                self.error(str(errValue)) 
    3535                self.classifier = None 
    36             pb.finish() 
     36            self.progressBarFinished() 
    3737        else: 
    3838            self.classifier = None 
Note: See TracChangeset for help on using the changeset viewer.