Changeset 9472:2203092446e1 in orange


Ignore:
Timestamp:
08/05/11 17:23:05 (3 years ago)
Author:
wencanluo <wencanluo@…>
Branch:
default
Convert:
8042b97a90fd13932f0a6c53c496ef5e37350c0d
Message:

Update OWTestLearner: rearrange some codes

File:
1 edited

Legend:

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

    r9469 r9472  
    218218            usestat = [self.selectedRScores, self.selectedCScores][self.isclassification()] 
    219219        return usestat 
     220     
     221    def set_newstate(self): 
     222        if self.is_multilabel(): 
     223            stat = self.mStatistics 
     224        else: 
     225            stat = [self.rStatistics, self.cStatistics][self.isclassification()] 
     226        return stat 
    220227     
    221228    def paintscores(self): 
     
    560567            else: 
    561568                self.tab.hideColumn(i+1) 
    562                  
    563     def set_newstate(self): 
    564         if self.is_multilabel(): 
    565             stat = self.mStatistics 
    566         else: 
    567             stat = [self.rStatistics, self.cStatistics][self.isclassification()] 
    568         return stat 
    569569     
    570570    def recompute(self, forced=False): 
Note: See TracChangeset for help on using the changeset viewer.