Changeset 9277:94bb55e26523 in orange


Ignore:
Timestamp:
11/28/11 12:21:36 (2 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
218ab554f1d2f1f23b945e8501b6da23b7c557d0
Message:

Fixed info box Train/Test data reporting.
Check if training dataset is present before running the estimators.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Evaluate/OWReliability.py

    r9206 r9277  
    203203         
    204204        if self.learner: 
    205             name = getattr(self.learner, "name") or type(self.learner).__name__ 
     205            name = "Learner: " + (getattr(self.learner, "name") or type(self.learner).__name__) 
    206206             
    207207        if self.train_data is not None: 
     
    210210             
    211211        if self.test_data is not None: 
    212             test = "Train Data: %i features, %i instances" % \ 
     212            test = "Test Data: %i features, %i instances" % \ 
    213213                (len(self.test_data.domain), len(self.test_data)) 
    214214        elif self.train_data: 
     
    320320        features = [] 
    321321        table = None 
    322         if self.learner and self._test_data() is not None: 
     322        if self.learner and self.train_data is not None \ 
     323                and self._test_data() is not None: 
    323324            self.run() 
    324325             
Note: See TracChangeset for help on using the changeset viewer.