Changeset 4994:64270dcc3723 in orange


Ignore:
Timestamp:
07/18/08 23:10:56 (6 years ago)
Author:
janezd <janez.demsar@…>
Branch:
default
Convert:
ae742caa24baefeadab61cbcca07395d69924cc4
Message:
  • added function domainPurger
File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/OWTools.py

    r4883 r4994  
    3030 
    3131 
    32  
     32def domainPurger(examples, purgeClasses): 
     33    import orange 
     34    newDomain = orange.RemoveUnusedValues(removeOneValued=True)(examples, 0, True, purgeClasses) 
     35    if newDomain != examples.domain: 
     36        return orange.ExampleTable(newDomain, examples) 
     37    return examples 
Note: See TracChangeset for help on using the changeset viewer.