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/OWCalibrationPlot.py

    r9505 r9599  
    1313import orngTest, orngStat 
    1414import statc, math 
     15from Orange.evaluation.testing import TEST_TYPE_SINGLE 
    1516 
    1617class singleClassCalibrationPlotGraph(OWGraph): 
     
    333334 
    334335        self.dres = dres 
     336         
     337        if dres and dres.test_type != TEST_TYPE_SINGLE: 
     338            self.warning(0, "Calibration plot is supported only for single-target prediction problems.") 
     339            return 
     340        self.warning(0, None) 
    335341 
    336342        self.graphs = [] 
Note: See TracChangeset for help on using the changeset viewer.