public class RemoveByName extends SimpleStreamFilter implements WeightedInstancesHandler, WeightedAttributesHandler
-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)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_EXPRESSION
the default expression.
|
Constructor and Description |
---|
RemoveByName() |
Modifier and Type | Method and Description |
---|---|
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<Option> |
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.
|
batchFinished, input
setInputFormat
batchFilterFile, debugTipText, doNotCheckCapabilitiesTipText, filterFile, getCapabilities, getCopyOfInputFormat, getDebug, getDoNotCheckCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, postExecution, preExecution, run, runFilter, setDebug, setDoNotCheckCapabilities, toString, useFilter, wekaStaticWrapper
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
makeCopy
public static final java.lang.String DEFAULT_EXPRESSION
public java.lang.String globalInfo()
globalInfo
in class SimpleFilter
public java.util.Enumeration<Option> listOptions()
listOptions
in interface OptionHandler
listOptions
in class Filter
public java.lang.String[] getOptions()
getOptions
in interface OptionHandler
getOptions
in class Filter
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 Filter
options
- the options to usejava.lang.Exception
- if the option setting failspublic 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