Ignore:
Timestamp:
01/27/12 23:39:05 (2 years ago)
Author:
Matija Polajnar <matija.polajnar@…>
Branch:
default
Message:

Multi-label classificaiton widgets. Merged in from Wencan Luo's work with some modifications.

File:
1 edited

Legend:

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

    r9546 r9599  
    1111import statc, math 
    1212from operator import add 
     13from Orange.evaluation.testing import TEST_TYPE_SINGLE 
    1314             
    1415class TransformedLabel(QLabel): 
     
    110111            return 
    111112 
     113        if res and res.test_type != TEST_TYPE_SINGLE: 
     114            self.warning(0, "Confusion matrix can be calculated only for single-target prediction problems.") 
     115            return 
     116        self.warning(0, None) 
     117         
    112118        self.matrix = orngStat.confusionMatrices(res, -2) 
    113119 
Note: See TracChangeset for help on using the changeset viewer.