|
||||||||||
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.SimpleStreamFilter
weka.filters.unsupervised.attribute.RemoveByName
public class RemoveByName
Removes attributes based on a regular expression matched against their names.
Valid options are:-D Turns on output of debugging information.
-E <regular expression> The regular expression to match the attribute names against. (default: ^.*id$)
-V Flag for inverting the matching sense. If set, attributes are kept instead of deleted. (default: off)
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_EXPRESSION
the default expression. |
Constructor Summary | |
---|---|
RemoveByName()
|
Method Summary | |
---|---|
java.lang.String |
expressionTipText()
Returns the tip text for this property. |
Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
java.lang.String |
getExpression()
Returns the regular expression in use. |
boolean |
getInvertSelection()
Get whether the supplied columns are to be removed or kept. |
java.lang.String[] |
getOptions()
returns the options of the current setup. |
java.lang.String |
getRevision()
Returns the revision string. |
java.lang.String |
globalInfo()
Returns a string describing this classifier. |
java.lang.String |
invertSelectionTipText()
Returns the tip text for this property. |
java.util.Enumeration |
listOptions()
Gets an enumeration describing the available options. |
static void |
main(java.lang.String[] args)
runs the filter with the given arguments. |
void |
setExpression(java.lang.String value)
Sets the regular expression to match the attribute names against. |
void |
setInvertSelection(boolean value)
Set whether selected columns should be removed or kept. |
void |
setOptions(java.lang.String[] options)
Parses the options for this object. |
Methods inherited from class weka.filters.SimpleStreamFilter |
---|
batchFinished, input |
Methods inherited from class weka.filters.SimpleFilter |
---|
debugTipText, getDebug, setDebug, setInputFormat |
Methods inherited from class weka.filters.Filter |
---|
batchFilterFile, filterFile, 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 |
Field Detail |
---|
public static final java.lang.String DEFAULT_EXPRESSION
Constructor Detail |
---|
public RemoveByName()
Method Detail |
---|
public java.lang.String globalInfo()
globalInfo
in class SimpleFilter
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
listOptions
in class SimpleFilter
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class SimpleFilter
public void setOptions(java.lang.String[] options) throws java.lang.Exception
-D Turns on output of debugging information.
-E <regular expression> The regular expression to match the attribute names against. (default: ^.*id$)
-V Flag for inverting the matching sense. If set, attributes are kept instead of deleted. (default: off)
setOptions
in interface OptionHandler
setOptions
in class SimpleFilter
options
- the options to use
java.lang.Exception
- if the option setting failsSimpleFilter.reset()
public void setExpression(java.lang.String value)
value
- the regular expressionpublic java.lang.String getExpression()
public java.lang.String expressionTipText()
public void setInvertSelection(boolean value)
value
- the new invert settingpublic boolean getInvertSelection()
public java.lang.String invertSelectionTipText()
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class Filter
Capabilities
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class Filter
public static void main(java.lang.String[] args)
args
- the commandline arguments
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |