Changeset 8553:eb2836737601 in orange


Ignore:
Timestamp:
08/01/11 12:48:49 (3 years ago)
Author:
matejd <matejd@…>
Branch:
default
Convert:
f524f0ad255a93646b33ef9da9c451ff4f65b190
Message:

Forced projections to exactly 3 in vizrank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWkNNOptimization.py

    r8363 r8553  
    7373        self.buttonBox = OWGUI.widgetBox(self.optimizationBox, orientation = "horizontal") 
    7474 
    75         if visualizationMethod != SCATTERPLOT: 
     75        if visualizationMethod == SCATTERPLOT3D: 
     76            self.label1 = OWGUI.widgetLabel(self.buttonBox, 'Projections with ' ) 
     77            self.optimizationTypeCombo = OWGUI.comboBox(self.buttonBox, self, "optimizationType", items = ["    exactly    "]) 
     78            self.attributeCountCombo = OWGUI.comboBox(self.buttonBox, self, "attributeCount", items = [3], tooltip = "Evaluate only projections with exactly (or maximum) this number of attributes", sendSelectedValue = 1, valueType = int, debuggingEnabled = 0) 
     79            self.optimizationTypeCombo.setDisabled(True) 
     80            self.attributeCountCombo.setDisabled(True) 
     81            self.attributeLabel = OWGUI.widgetLabel(self.buttonBox, ' attributes') 
     82        elif visualizationMethod != SCATTERPLOT: 
    7683            self.label1 = OWGUI.widgetLabel(self.buttonBox, 'Projections with ' ) 
    7784            self.optimizationTypeCombo = OWGUI.comboBox(self.buttonBox, self, "optimizationType", items = ["    exactly    ", "  maximum  "] ) 
Note: See TracChangeset for help on using the changeset viewer.