Changeset 3523:6e35097c8961 in orange


Ignore:
Timestamp:
04/11/07 12:12:52 (7 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
46e322f2bb941cfb08d5d129be55039a33dd2bd3
Message:
  • added correlations to output
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Regression/OWPade.py

    r3482 r3523  
    1313class OWPade(OWWidget): 
    1414 
    15     settingsList = ["output", "method", "derivativeAsMeta", "originalAsMeta", "savedDerivativeAsMeta", "differencesAsMeta", "enableThreshold", "threshold"] 
     15    settingsList = ["output", "method", "derivativeAsMeta", "originalAsMeta", "savedDerivativeAsMeta", "differencesAsMeta", "correlationsAsMeta", "enableThreshold", "threshold"] 
    1616    contextHandlers = {"": PerfectDomainContextHandler("", ["outputAttr", ContextField("attributes", selected="dimensions")])} 
    1717 
     
    3131        self.savedDerivativeAsMeta = 0 
    3232        self.differencesAsMeta = 1 
     33        self.correlationsAsMeta = 1 
    3334        self.originalAsMeta = 1 
    3435        self.enableThreshold = 0 
     
    7071        self.metaCB = OWGUI.checkBox(box, self, "derivativeAsMeta", label="Qualitative constraint") 
    7172        OWGUI.checkBox(box, self, "differencesAsMeta", label="Derivatives of selected attributes") 
     73        OWGUI.checkBox(box, self, "correlationsAsMeta", label="Absolute values of derivatives") 
    7274        OWGUI.checkBox(box, self, "originalAsMeta", label="Original class attribute") 
    7375 
     
    141143        if not self.deltas: 
    142144            self.deltas = [[None] * len(self.contAttributes) for x in xrange(len(self.data))] 
     145        if not self.errors: 
     146            self.errors = [[None] * len(self.contAttributes) for x in xrange(len(self.data))] 
    143147 
    144148        dimensionsToCompute = [d for d in self.dimensions if not self.deltas[0][d]] 
     
    150154            self.progressBarFinished() 
    151155 
    152         paded, derivativeID, metaIDs, classID = orngPade.createQTable(self, data, self.dimensions, 
     156        paded, derivativeID, metaIDs, classID, corrIDs = orngPade.createQTable(self, data, self.dimensions, 
    153157                                                             not self.output and -1 or self.outputAttr, 
    154158                                                             self.enableThreshold and abs(self.threshold), 
    155                                                              self.useMQCNotation, self.derivativeAsMeta, self.differencesAsMeta, self.originalAsMeta) 
     159                                                             self.useMQCNotation, self.derivativeAsMeta, self.differencesAsMeta, self.correlationsAsMeta, self.originalAsMeta) 
    156160        self.send("Examples", paded) 
    157161 
Note: See TracChangeset for help on using the changeset viewer.