|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectweka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleBatchFilter
weka.filters.unsupervised.attribute.PartitionedMultiFilter
public class PartitionedMultiFilter
A filter that applies filters on subsets of attributes and assembles the output into a new dataset. Attributes that are not covered by any of the ranges can be either retained or removed from the output.
Valid options are:-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
-R <range> An attribute range (can be specified multiple times). For each filter a range must be supplied. 'first' and 'last' are valid indices. 'inv(...)' around the range denotes an inverted range.
-U Flag for leaving unused attributes out of the output, by default these are included in the filter output.
StreamableFilter,
Serialized Form| Constructor Summary | |
|---|---|
PartitionedMultiFilter()
|
|
| Method Summary | |
|---|---|
java.lang.String |
filtersTipText()
Returns the tip text for this property. |
Filter |
getFilter(int index)
Gets a single filter from the set of available filters. |
Filter[] |
getFilters()
Gets the list of possible filters to choose from. |
java.lang.String[] |
getOptions()
Gets the current settings of the filter. |
Range |
getRange(int index)
Gets a single Range from the set of available Ranges. |
Range[] |
getRanges()
Gets the list of possible Ranges to choose from. |
boolean |
getRemoveUnused()
Gets whether unused attributes (ones that are not covered by any of the ranges) are removed from the output. |
java.lang.String |
getRevision()
Returns the revision string. |
java.lang.String |
globalInfo()
Returns a string describing this filter. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(java.lang.String[] args)
Main method for executing this class. |
java.lang.String |
rangesTipText()
Returns the tip text for this property. |
java.lang.String |
removeUnusedTipText()
Returns the tip text for this property. |
void |
setFilters(Filter[] filters)
Sets the list of possible filters to choose from. |
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object. |
void |
setRanges(Range[] Ranges)
Sets the list of possible Ranges to choose from. |
void |
setRemoveUnused(boolean value)
Sets whether unused attributes (ones that are not covered by any of the ranges) are removed from the output. |
| Methods inherited from class weka.filters.SimpleBatchFilter |
|---|
batchFinished, input |
| Methods inherited from class weka.filters.SimpleFilter |
|---|
debugTipText, getDebug, setDebug, setInputFormat |
| Methods inherited from class weka.filters.Filter |
|---|
batchFilterFile, filterFile, getCapabilities, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PartitionedMultiFilter()
| Method Detail |
|---|
public java.lang.String globalInfo()
globalInfo in class SimpleFilterpublic java.util.Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class SimpleFilter
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-D Turns on output of debugging information.
-F <classname [options]> A filter to apply (can be specified multiple times).
-R <range> An attribute range (can be specified multiple times). For each filter a range must be supplied. 'first' and 'last' are valid indices. 'inv(...)' around the range denotes an inverted range.
-U Flag for leaving unused attributes out of the output, by default these are included in the filter output.
setOptions in interface OptionHandlersetOptions in class SimpleFilteroptions - the list of options as an array of strings
java.lang.Exception - if an option is not supportedSimpleFilter.reset()public java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class SimpleFilterpublic void setRemoveUnused(boolean value)
value - if true then the unused attributes get removedpublic boolean getRemoveUnused()
public java.lang.String removeUnusedTipText()
public void setFilters(Filter[] filters)
filters - an array of filters with all options set.SimpleFilter.reset()public Filter[] getFilters()
public java.lang.String filtersTipText()
public Filter getFilter(int index)
index - the index of the filter wanted
public void setRanges(Range[] Ranges)
Ranges - an array of Ranges with all options set.SimpleFilter.reset()public Range[] getRanges()
public java.lang.String rangesTipText()
public Range getRange(int index)
index - the index of the Range wanted
public java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(java.lang.String[] args)
args - should contain arguments for the filter: use -h for help
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||