|
||||||||||
| 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 String |
DEFAULT_EXPRESSION
the default expression. |
| Constructor Summary | |
|---|---|
RemoveByName()
|
|
| Method Summary | |
|---|---|
String |
expressionTipText()
Returns the tip text for this property. |
Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
String |
getExpression()
Returns the regular expression in use. |
boolean |
getInvertSelection()
Get whether the supplied columns are to be removed or kept. |
String[] |
getOptions()
returns the options of the current setup. |
String |
getRevision()
Returns the revision string. |
String |
globalInfo()
Returns a string describing this classifier. |
String |
invertSelectionTipText()
Returns the tip text for this property. |
Enumeration |
listOptions()
Gets an enumeration describing the available options. |
static void |
main(String[] args)
runs the filter with the given arguments. |
void |
setExpression(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(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, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputPeek, runFilter, toString, useFilter, wekaStaticWrapper |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_EXPRESSION
| Constructor Detail |
|---|
public RemoveByName()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class SimpleFilterpublic Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class SimpleFilterpublic String[] getOptions()
getOptions in interface OptionHandlergetOptions in class SimpleFilter
public void setOptions(String[] options)
throws 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 SimpleFilteroptions - the options to use
Exception - if the option setting failsSimpleFilter.reset()public void setExpression(String value)
value - the regular expressionpublic String getExpression()
public String expressionTipText()
public void setInvertSelection(boolean value)
value - the new invert settingpublic boolean getInvertSelection()
public String invertSelectionTipText()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class FilterCapabilitiespublic String getRevision()
getRevision in interface RevisionHandlergetRevision in class Filterpublic static void main(String[] args)
args - the commandline arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||