|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weka.filters.Filter weka.filters.unsupervised.attribute.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 !
Field Summary | |
protected int |
m_ClassIndex
Storing the class index |
protected boolean |
m_IgnoreClass
True if the class is to be unset |
Fields inherited from class weka.filters.Filter |
m_NewBatch |
Constructor Summary | |
PotentialClassIgnorer()
|
Method Summary | |
Instances |
getOutputFormat()
Gets the format of the output instances. |
void |
setIgnoreClass(boolean newIgnoreClass)
Set the IgnoreClass value. |
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances. |
Methods inherited from class weka.filters.Filter |
batchFilterFile, batchFinished, bufferInput, copyStringValues, copyStringValues, filterFile, flushInput, getInputFormat, getInputStringIndex, getOutputStringIndex, getStringIndices, input, inputFormat, inputFormatPeek, isOutputFormatDefined, main, 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 boolean m_IgnoreClass
protected int m_ClassIndex
Constructor Detail |
public PotentialClassIgnorer()
Method Detail |
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 final 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 void setIgnoreClass(boolean newIgnoreClass)
newIgnoreClass
- The new IgnoreClass value.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |