|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--weka.filters.Filter
|
+--weka.filters.AttributeTypeFilter
An instance filter that deletes all attributes of a specified type from the dataset.
Valid filter-specific options are:
-T type
Specify the attribute type to delete. Valid values are "nominal", "numeric",
and "string". (default "string")
| Field Summary | |
protected int |
m_DeleteType
Stores which type of attribute to delete |
static Tag[] |
TAGS_ATTRIBUTES
|
| Fields inherited from class weka.filters.Filter |
m_NewBatch |
| Constructor Summary | |
AttributeTypeFilter()
|
|
| Method Summary | |
SelectedTag |
getAttributeType()
Gets the type of attribute that will be deleted. |
java.lang.String[] |
getOptions()
Gets the current settings of the filter. |
boolean |
input(Instance instance)
Input an instance for filtering. |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options |
static void |
main(java.lang.String[] argv)
Main method for testing this class. |
void |
setAttributeType(SelectedTag newType)
Sets the type of attribute to delete. |
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances. |
void |
setOptions(java.lang.String[] options)
Parses a given list of options controlling the behaviour of this object. |
| Methods inherited from class weka.filters.Filter |
batchFilterFile, batchFinished, bufferInput, copyStringValues, copyStringValues, filterFile, flushInput, getInputFormat, getInputStringIndex, getOutputFormat, getOutputStringIndex, getStringIndices, inputFormat, isOutputFormatDefined, numPendingOutput, output, outputFormat, outputFormatPeek, outputPeek, push, resetQueue, setOutputFormat, useFilter |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int m_DeleteType
public static final Tag[] TAGS_ATTRIBUTES
| Constructor Detail |
public AttributeTypeFilter()
| Method Detail |
public java.util.Enumeration listOptions()
listOptions in interface OptionHandler
public void setOptions(java.lang.String[] options)
throws java.lang.Exception
-T type
Specify the attribute type to delete. Valid values are "nominal",
"numeric", and "string". (default "string")
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic SelectedTag getAttributeType()
public void setAttributeType(SelectedTag newType)
newAttributeType - the type of attribute to delete.
public boolean setInputFormat(Instances instanceInfo)
throws java.lang.Exception
setInputFormat in class FilterinstanceInfo - an Instances object containing the input instance
structure (any instances contained in the object are ignored - only the
structure is required).java.lang.Exception - if the format couldn't be set successfullypublic boolean input(Instance instance)
input in class Filterinstance - the input instancejava.lang.IllegalStateException - if no input format has been defined.public static void main(java.lang.String[] argv)
argv - should contain arguments to the filter: use -h for help
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||