类 NumericCleaner
java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
weka.filters.SimpleStreamFilter
weka.filters.unsupervised.attribute.NumericCleaner
A filter that 'cleanses' the numeric data from values that are too small, too big or very close to a certain value (e.g., 0) and sets these values to a pre-defined default.
Valid options are:
-D Turns on output of debugging information.
-min <double> The minimum threshold. (default -Double.MAX_VALUE)
-min-default <double> The replacement for values smaller than the minimum threshold. (default -Double.MAX_VALUE)
-max <double> The maximum threshold. (default Double.MAX_VALUE)
-max-default <double> The replacement for values larger than the maximum threshold. (default Double.MAX_VALUE)
-closeto <double> The number values are checked for closeness. (default 0)
-closeto-default <double> The replacement for values that are close to '-closeto'. (default 0)
-closeto-tolerance <double> The tolerance below which numbers are considered being close to to each other. (default 1E-6)
-decimals <int> The number of decimals to round to, -1 means no rounding at all. (default -1)
-R <col1,col2,...> The list of columns to cleanse, e.g., first-last or first-3,5-last. (default first-last)
-V Inverts the matching sense.
-include-class Whether to include the class in the cleansing. The class column will always be skipped, if this flag is not present. (default no)
- 版本:
- $Revision: 8281 $
- 作者:
- fracpete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyGets the selection of the columns, e.g., first-last or first-3,5-lastReturns the Capabilities of this filter.double
Get the "close to" number.double
Get the "close to" default.double
Get the "close to" Tolerance.int
Get the number of decimals to round to.boolean
Gets whether the class is included in the cleaning process or always skipped.boolean
Gets whether the selection of the columns is inverteddouble
Get the maximum default.double
Get the maximum threshold.double
Get the minimum default.double
Get the minimum threshold.String[]
Gets the current settings of the filter.Returns the revision string.Returns a string describing this filter.Returns the tip text for this propertyReturns the tip text for this propertyReturns an enumeration describing the available options.static void
Runs the filter from commandline, use "-h" to see all options.Returns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyReturns the tip text for this propertyvoid
setAttributeIndices
(String value) Sets the columns to use, e.g., first-last or first-3,5-lastvoid
setCloseTo
(double value) Set the "close to" number.void
setCloseToDefault
(double value) Set the "close to" default.void
setCloseToTolerance
(double value) Set the "close to" Tolerance.void
setDecimals
(int value) Set the number of decimals to round to.void
setIncludeClass
(boolean value) Sets whether the class can be cleaned, too.void
setInvertSelection
(boolean value) Sets whether the selection of the indices is inverted or notvoid
setMaxDefault
(double value) Set the naximum default.void
setMaxThreshold
(double value) Set the maximum threshold.void
setMinDefault
(double value) Set the minimum default.void
setMinThreshold
(double value) Set the minimum threshold.void
setOptions
(String[] options) Parses a given list of options.从类继承的方法 weka.filters.SimpleStreamFilter
batchFinished, input
从类继承的方法 weka.filters.SimpleFilter
debugTipText, getDebug, setDebug, setInputFormat
从类继承的方法 weka.filters.Filter
batchFilterFile, filterFile, getCapabilities, getOutputFormat, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
构造器详细资料
-
NumericCleaner
public NumericCleaner()
-
-
方法详细资料
-
globalInfo
Returns a string describing this filter.- 指定者:
globalInfo
在类中SimpleFilter
- 返回:
- a description of the filter suitable for displaying in the explorer/experimenter gui
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 覆盖:
listOptions
在类中SimpleFilter
- 返回:
- an enumeration of all the available options.
-
getOptions
Gets the current settings of the filter.- 指定者:
getOptions
在接口中OptionHandler
- 覆盖:
getOptions
在类中SimpleFilter
- 返回:
- an array of strings suitable for passing to setOptions
-
setOptions
Parses a given list of options. Valid options are:-D Turns on output of debugging information.
-min <double> The minimum threshold. (default -Double.MAX_VALUE)
-min-default <double> The replacement for values smaller than the minimum threshold. (default -Double.MAX_VALUE)
-max <double> The maximum threshold. (default Double.MAX_VALUE)
-max-default <double> The replacement for values larger than the maximum threshold. (default Double.MAX_VALUE)
-closeto <double> The number values are checked for closeness. (default 0)
-closeto-default <double> The replacement for values that are close to '-closeto'. (default 0)
-closeto-tolerance <double> The tolerance below which numbers are considered being close to to each other. (default 1E-6)
-decimals <int> The number of decimals to round to, -1 means no rounding at all. (default -1)
-R <col1,col2,...> The list of columns to cleanse, e.g., first-last or first-3,5-last. (default first-last)
-V Inverts the matching sense.
-include-class Whether to include the class in the cleansing. The class column will always be skipped, if this flag is not present. (default no)
- 指定者:
setOptions
在接口中OptionHandler
- 覆盖:
setOptions
在类中SimpleFilter
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported- 另请参阅:
-
SimpleFilter.reset()
-
getCapabilities
Returns the Capabilities of this filter.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Filter
- 返回:
- the capabilities of this object
- 另请参阅:
-
minThresholdTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getMinThreshold
public double getMinThreshold()Get the minimum threshold.- 返回:
- the minimum threshold.
-
setMinThreshold
public void setMinThreshold(double value) Set the minimum threshold.- 参数:
value
- the minimum threshold to use.
-
minDefaultTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getMinDefault
public double getMinDefault()Get the minimum default.- 返回:
- the minimum default.
-
setMinDefault
public void setMinDefault(double value) Set the minimum default.- 参数:
value
- the minimum default to use.
-
maxThresholdTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getMaxThreshold
public double getMaxThreshold()Get the maximum threshold.- 返回:
- the maximum threshold.
-
setMaxThreshold
public void setMaxThreshold(double value) Set the maximum threshold.- 参数:
value
- the maximum threshold to use.
-
maxDefaultTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getMaxDefault
public double getMaxDefault()Get the maximum default.- 返回:
- the maximum default.
-
setMaxDefault
public void setMaxDefault(double value) Set the naximum default.- 参数:
value
- the maximum default to use.
-
closeToTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getCloseTo
public double getCloseTo()Get the "close to" number.- 返回:
- the "close to" number.
-
setCloseTo
public void setCloseTo(double value) Set the "close to" number.- 参数:
value
- the number to use for checking closeness.
-
closeToDefaultTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getCloseToDefault
public double getCloseToDefault()Get the "close to" default.- 返回:
- the "close to" default.
-
setCloseToDefault
public void setCloseToDefault(double value) Set the "close to" default.- 参数:
value
- the "close to" default to use.
-
closeToToleranceTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getCloseToTolerance
public double getCloseToTolerance()Get the "close to" Tolerance.- 返回:
- the "close to" Tolerance.
-
setCloseToTolerance
public void setCloseToTolerance(double value) Set the "close to" Tolerance.- 参数:
value
- the "close to" Tolerance to use.
-
attributeIndicesTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getAttributeIndices
Gets the selection of the columns, e.g., first-last or first-3,5-last- 返回:
- the selected indices
-
setAttributeIndices
Sets the columns to use, e.g., first-last or first-3,5-last- 参数:
value
- the columns to use
-
invertSelectionTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getInvertSelection
public boolean getInvertSelection()Gets whether the selection of the columns is inverted- 返回:
- true if the selection is inverted
-
setInvertSelection
public void setInvertSelection(boolean value) Sets whether the selection of the indices is inverted or not- 参数:
value
- the new invert setting
-
includeClassTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getIncludeClass
public boolean getIncludeClass()Gets whether the class is included in the cleaning process or always skipped.- 返回:
- true if the class can be considered for cleaning.
-
setIncludeClass
public void setIncludeClass(boolean value) Sets whether the class can be cleaned, too.- 参数:
value
- true if the class can be cleansed, too
-
decimalsTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
getDecimals
public int getDecimals()Get the number of decimals to round to.- 返回:
- the number of decimals.
-
setDecimals
public void setDecimals(int value) Set the number of decimals to round to.- 参数:
value
- the number of decimals.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Filter
- 返回:
- the revision
-
main
Runs the filter from commandline, use "-h" to see all options.- 参数:
args
- the commandline options for the filter
-