|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.filters.Filter
weka.filters.unsupervised.attribute.PotentialClassIgnorer
public abstract class PotentialClassIgnorer
This filter should be extended by other unsupervised attribute filters to allow processing of the class attribute if that's required. It the class is to be ignored it is essential that the extending filter does not change the position (i.e. index) of the attribute that is originally the class attribute !
Constructor Summary | |
---|---|
PotentialClassIgnorer()
|
Method Summary | |
---|---|
boolean |
getIgnoreClass()
Gets the IgnoreClass value. |
java.lang.String[] |
getOptions()
Gets the current settings of the filter. |
Instances |
getOutputFormat()
Gets the format of the output instances. |
java.lang.String |
ignoreClassTipText()
Returns the tip text for this property |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options. |
void |
setIgnoreClass(boolean newIgnoreClass)
Set the IgnoreClass value. |
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances. |
void |
setOptions(java.lang.String[] options)
Parses a list of options for this object. |
Methods inherited from class weka.filters.Filter |
---|
batchFilterFile, batchFinished, filterFile, getCapabilities, getCapabilities, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, main, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface weka.core.RevisionHandler |
---|
getRevision |
Constructor Detail |
---|
public PotentialClassIgnorer()
Method Detail |
---|
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.Exception
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
java.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public boolean setInputFormat(Instances instanceInfo) throws java.lang.Exception
super.setInputFormat(Instances)
setInputFormat
in class Filter
instanceInfo
- 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 inputFormat can't be set successfullypublic Instances getOutputFormat()
getOutputFormat
in class Filter
java.lang.NullPointerException
- if no input structure has been
defined (or the output format hasn't been determined yet)public java.lang.String ignoreClassTipText()
public void setIgnoreClass(boolean newIgnoreClass)
newIgnoreClass
- The new IgnoreClass value.public boolean getIgnoreClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |