|
||||||||||
| 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.ClassAssigner
public class ClassAssigner
Filter that can set and unset the class index.
Valid options are:-D Turns on output of debugging information.
-C <num|first|last|0> The index of the class attribute. Index starts with 1, 'first' and 'last' are accepted, '0' unsets the class index. (default: last)
| Field Summary | |
|---|---|
static int |
FIRST
use the first attribute as class. |
static int |
LAST
use the last attribute as class. |
static int |
UNSET
unset the class attribute. |
| Constructor Summary | |
|---|---|
ClassAssigner()
|
|
| Method Summary | |
|---|---|
String |
classIndexTipText()
Returns the tip text for this property. |
Capabilities |
getCapabilities()
Returns the Capabilities of this filter. |
String |
getClassIndex()
returns the class index. |
String[] |
getOptions()
Gets the current settings of the filter. |
String |
getRevision()
Returns the revision string. |
String |
globalInfo()
Returns a string describing this classifier. |
Enumeration |
listOptions()
Returns an enumeration describing the available options. |
static void |
main(String[] args)
Main method for executing this class. |
void |
setClassIndex(String value)
sets the class index. |
void |
setOptions(String[] options)
Parses a list of 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 int FIRST
public static final int LAST
public static final int UNSET
| Constructor Detail |
|---|
public ClassAssigner()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class SimpleFilterpublic Enumeration listOptions()
listOptions in interface OptionHandlerlistOptions in class SimpleFilter
public void setOptions(String[] options)
throws Exception
-D Turns on output of debugging information.
-C <num|first|last|0> The index of the class attribute. Index starts with 1, 'first' and 'last' are accepted, '0' unsets the class index. (default: last)
setOptions in interface OptionHandlersetOptions in class SimpleFilteroptions - the list of options as an array of strings
Exception - if an option is not supportedSimpleFilter.reset()public String[] getOptions()
getOptions in interface OptionHandlergetOptions in class SimpleFilterpublic String classIndexTipText()
public void setClassIndex(String value)
value - the class indexpublic String getClassIndex()
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 - should contain arguments for the filter: use -h for help
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||