Changeset 410:123fa099333a in orange-bioinformatics
- Timestamp:
- 07/03/08 13:41:58 (5 years ago)
- Branch:
- default
- Convert:
- 48cb683a1fa91f74d685737e5626d02a3a414bfa
- File:
-
- 1 edited
-
widgets/OWFeatureSelection.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widgets/OWFeatureSelection.py
r407 r410 35 35 OWWidget.__init__(self, parent, signalManager, name, wantGraph=True, showSaveGraph=True) 36 36 self.inputs = [("Examples", ExampleTable, self.SetData)] 37 self.outputs = [("Examples with selected attributes", ExampleTable), ("Examples with remaining attributes", ExampleTable) ]37 self.outputs = [("Examples with selected attributes", ExampleTable), ("Examples with remaining attributes", ExampleTable), ("Selected attributes", ExampleTable)] 38 38 39 39 self.methodIndex = 0 … … 152 152 else: 153 153 text = "No data on input\n\n" 154 self.dataInfoLabel.setText(text) 154 self.dataInfoLabel.setText(text) 155 155 156 156 def UpdateSelectedInfoLabel(self, cutOffLower=0, cutOffUpper=0): … … 187 187 remainingAttrs = [attr for attr in self.data.domain.attributes if not test(attr, cutOffLower, cutOffUpper)] #self.scores.get(attr,0)>cutOffUpper or self.scores.get(attr,0)<cutOffLower] 188 188 self.send("Examples with remaining attributes", self.data.select(remainingAttrs+[self.data.domain.classVar])) 189 domain = orange.Domain([orange.StringVariable("label")], False) 190 self.send("Selected attributes", orange.ExampleTable([orange.Example(domain, [attr.name]) for attr in selectedAttrs]) if selectedAttrs else None) 191 189 192 else: 190 193 self.send("Examples with selected attributes", None) 191 194 self.send("Examples with remaining attributes", None) 195 self.send("Selected attributes", None) 192 196 193 197 if __name__=="__main__":
Note: See TracChangeset
for help on using the changeset viewer.
