类 NumericToBinary
java.lang.Object
weka.filters.Filter
weka.filters.unsupervised.attribute.PotentialClassIgnorer
weka.filters.unsupervised.attribute.NumericToBinary
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
,StreamableFilter
,UnsupervisedFilter
public class NumericToBinary
extends PotentialClassIgnorer
implements UnsupervisedFilter, StreamableFilter
Converts all numeric attributes into binary attributes (apart from the class attribute, if set): if the value of the numeric attribute is exactly zero, the value of the new attribute will be zero. If the value of the numeric attribute is missing, the value of the new attribute will be missing. Otherwise, the value of the new attribute will be one. The new attributes will be nominal.
Valid options are:
-unset-class-temporarily Unsets the class index temporarily before the filter is applied to the data. (default: no)
- 版本:
- $Revision: 5543 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the Capabilities of this filter.Returns the revision string.Returns a string describing this filterboolean
Input an instance for filtering.static void
Main method for testing this class.boolean
setInputFormat
(Instances instanceInfo) Sets the format of the input instances.从类继承的方法 weka.filters.unsupervised.attribute.PotentialClassIgnorer
getIgnoreClass, getOptions, getOutputFormat, ignoreClassTipText, listOptions, setIgnoreClass, setOptions
从类继承的方法 weka.filters.Filter
batchFilterFile, batchFinished, filterFile, getCapabilities, isFirstBatchDone, isNewBatch, isOutputFormatDefined, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
构造器详细资料
-
NumericToBinary
public NumericToBinary()
-
-
方法详细资料
-
globalInfo
Returns a string describing this filter- 返回:
- a description of the filter suitable for displaying in the explorer/experimenter gui
-
getCapabilities
Returns the Capabilities of this filter.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中Filter
- 返回:
- the capabilities of this object
- 另请参阅:
-
setInputFormat
Sets the format of the input instances.- 覆盖:
setInputFormat
在类中PotentialClassIgnorer
- 参数:
instanceInfo
- an Instances object containing the input instance structure (any instances contained in the object are ignored - only the structure is required).- 返回:
- true if the outputFormat may be collected immediately
- 抛出:
Exception
- if the input format can't be set successfully
-
input
Input an instance for filtering.- 覆盖:
input
在类中Filter
- 参数:
instance
- the input instance- 返回:
- true if the filtered instance may now be collected with output().
- 抛出:
IllegalStateException
- if no input format has been defined.
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中Filter
- 返回:
- the revision
-
main
Main method for testing this class.- 参数:
argv
- should contain arguments to the filter: use -h for help
-