|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weka.filters.Filter | +--weka.filters.RSNumerizeNominal
Creates numerical attributes of nominal ones, in case we wish to discretize them also
Field Summary |
Fields inherited from class weka.filters.Filter |
m_Debug, m_NewBatch |
Constructor Summary | |
RSNumerizeNominal()
|
Method Summary | |
String |
attributeIndicesTipText()
Returns the tip text for this property |
String |
debugTipText()
|
String |
getAttributeIndices()
Gets the current range selection |
int |
getDebug()
Get the value of debug. |
String[] |
getOptions()
Gets the current option settings for the OptionHandler. |
String |
globalInfo()
Returns a string describing this filter |
boolean |
input(Instance instance)
Input an instance for filtering. |
Enumeration |
listOptions()
Gets an enumeration describing the available options |
static void |
main(String[] argv)
Main method for testing this class. |
void |
setAttributeIndices(String rangeList)
Sets which attributes are to be Discretized (only numeric attributes among the selection will be Discretized). |
void |
setDebug(int v)
Set the value of debug. |
boolean |
setInputFormat(Instances instanceInfo)
Sets the format of the input instances. |
void |
setOptions(String[] options)
Sets the OptionHandler's options using the given list. |
protected void |
setOutputFormat()
|
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 |
Constructor Detail |
public RSNumerizeNominal()
Method Detail |
public String[] getOptions()
OptionHandler
getOptions
in interface OptionHandler
public int getDebug()
public void setDebug(int v)
v
- Value to assign to debug.public String debugTipText()
public String attributeIndicesTipText()
public String getAttributeIndices()
public void setAttributeIndices(String rangeList)
rangeList
- a string representing the list of attributes. Since
the string will typically come from a user, attributes are indexed from
1. IllegalArgumentException
- if an invalid range list is suppliedpublic Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
OptionHandler
setOptions
in interface OptionHandler
options
- the list of options as an array of strings
Exception
- if an option is not supportedpublic boolean setInputFormat(Instances instanceInfo) throws Exception
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).
Exception
- if the inputFormat can't be set successfullyprotected void setOutputFormat() throws Exception
Exception
public boolean input(Instance instance)
input
in class Filter
instance
- the input instance
IllegalStateException
- if no input format has been defined.public String globalInfo()
public static void main(String[] argv)
argv
- should contain arguments to the filter: use -h for help
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |