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, inputsetInputFormatbatchFilterFile, 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, wekaStaticWrapperequals, getClass, hashCode, notify, notifyAll, wait, wait, waitmakeCopypublic static final java.lang.String DEFAULT_EXPRESSION
public java.lang.String globalInfo()
globalInfo in class SimpleFilterpublic java.util.Enumeration<Option> listOptions()
listOptions in interface OptionHandlerlistOptions in class Filterpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlergetOptions in class Filterpublic 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 OptionHandlersetOptions in class Filteroptions - 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 CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(java.lang.String[] args)
args - the commandline arguments