Changeset 417:dff0c98d57f6 in orange-bioinformatics


Ignore:
Timestamp:
07/10/08 11:00:08 (6 years ago)
Author:
ales_erjavec <ales.erjavec@…>
Branch:
default
Convert:
cea77937bd03f39f78ee9196a7b88b88a57fcbe9
Message:

-added a score column to selected attributes output

File:
1 edited

Legend:

Unmodified
Added
Removed
  • widgets/OWFeatureSelection.py

    r413 r417  
    196196            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] 
    197197            self.send("Examples with remaining attributes", self.data.select(remainingAttrs+[self.data.domain.classVar])) 
    198             domain = orange.Domain([orange.StringVariable("label")], False) 
    199             self.send("Selected attributes", orange.ExampleTable([orange.Example(domain, [attr.name]) for attr in selectedAttrs]) if selectedAttrs else None) 
     198            domain = orange.Domain([orange.StringVariable("label"), orange.FloatVariable(self.scoreMethods[self.methodIndex][0])], False) 
     199            self.send("Selected attributes", orange.ExampleTable([orange.Example(domain, [attr.name, self.scores.get(attr, 0)]) for attr in selectedAttrs]) if selectedAttrs else None) 
    200200             
    201201        else: 
Note: See TracChangeset for help on using the changeset viewer.