public class MekaClassAttributes
extends weka.filters.SimpleStreamFilter
Modifier and Type | Field and Description |
---|---|
protected weka.core.Range |
m_AttributeIndices
the range of attributes to use as class attributes.
|
protected weka.filters.unsupervised.attribute.Reorder |
m_Reorder
for reordering the attributes.
|
Constructor and Description |
---|
MekaClassAttributes() |
Modifier and Type | Method and Description |
---|---|
String |
attributeIndicesTipText()
Returns the tip text for this property
|
protected weka.core.Instances |
determineOutputFormat(weka.core.Instances inputFormat)
Determines the output format based on the input format and returns
this.
|
String |
getAttributeIndices()
Get the current range selection
|
weka.core.Capabilities |
getCapabilities()
Returns the Capabilities of this filter.
|
String[] |
getOptions()
Gets the current settings of the filter.
|
String |
getRevision() |
String |
globalInfo()
Returns a string describing this filter.
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] args)
runs the filter with the given arguments.
|
protected weka.core.Instance |
process(weka.core.Instance instance)
processes the given instance (may change the provided instance) and
returns the modified version.
|
void |
setAttributeIndices(String value)
Set which attributes are to be used as MEKA class attributes.
|
void |
setOptions(String[] options)
Parses a given list of options.
|
batchFinished, hasImmediateOutputFormat, input, preprocess, process
batchFilterFile, bufferInput, copyValues, copyValues, debugTipText, doNotCheckCapabilitiesTipText, filterFile, flushInput, getCapabilities, getDebug, getDoNotCheckCapabilities, getInputFormat, getOutputFormat, initInputLocators, initOutputLocators, inputFormatPeek, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, mayRemoveInstanceAfterFirstBatchDone, numPendingOutput, output, outputFormatPeek, outputPeek, postExecution, preExecution, push, push, resetQueue, run, runFilter, setDebug, setDoNotCheckCapabilities, setOutputFormat, testInputFormat, toString, useFilter, wekaStaticWrapper
protected weka.core.Range m_AttributeIndices
protected weka.filters.unsupervised.attribute.Reorder m_Reorder
public String globalInfo()
globalInfo
in class weka.filters.SimpleFilter
public Enumeration listOptions()
listOptions
in interface weka.core.OptionHandler
listOptions
in class weka.filters.Filter
public void setOptions(String[] options) throws Exception
setOptions
in interface weka.core.OptionHandler
setOptions
in class weka.filters.Filter
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String[] getOptions()
getOptions
in interface weka.core.OptionHandler
getOptions
in class weka.filters.Filter
public void setAttributeIndices(String value) throws Exception
value
- a string representing the list of attributes. Since
the string will typically come from a user, attributes are indexed from
1. setInputFormat(Instances)
, since the output format is
determined in that method.Exception
- if an invalid range list is suppliedpublic String getAttributeIndices()
public String attributeIndicesTipText()
public weka.core.Capabilities getCapabilities()
getCapabilities
in interface weka.core.CapabilitiesHandler
getCapabilities
in class weka.filters.Filter
Capabilities
protected weka.core.Instances determineOutputFormat(weka.core.Instances inputFormat) throws Exception
determineOutputFormat
in class weka.filters.SimpleStreamFilter
inputFormat
- the input format to base the output format onException
- in case the determination goes wrongprotected weka.core.Instance process(weka.core.Instance instance) throws Exception
process
in class weka.filters.SimpleStreamFilter
instance
- the instance to processException
- in case the processing goes wrongpublic String getRevision()
getRevision
in interface weka.core.RevisionHandler
getRevision
in class weka.filters.Filter
public static void main(String[] args)
args
- the commandline argumentsCopyright © 2017. All Rights Reserved.