类 PotentialClassIgnorer
java.lang.Object
weka.filters.Filter
weka.filters.unsupervised.attribute.PotentialClassIgnorer
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
- 直接已知子类:
Center
,Discretize
,MathExpression
,Normalize
,NumericToBinary
,ReplaceMissingValues
,Standardize
This filter should be extended by other unsupervised attribute
filters to allow processing of the class attribute if that's
required. It the class is to be ignored it is essential that the
extending filter does not change the position (i.e. index) of the
attribute that is originally the class attribute !
- 版本:
- $Revision: 1.7 $
- 作者:
- Eibe Frank (eibe@cs.waikato.ac.nz), Mark Hall (mhall@cs.waikato.ac.nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
Gets the IgnoreClass value.String[]
Gets the current settings of the filter.Gets the format of the output instances.Returns the tip text for this propertyReturns an enumeration describing the available options.void
setIgnoreClass
(boolean newIgnoreClass) Set the IgnoreClass value.boolean
setInputFormat
(Instances instanceInfo) Sets the format of the input instances.void
setOptions
(String[] options) Parses a list of options for this object.从类继承的方法 weka.filters.Filter
batchFilterFile, batchFinished, filterFile, getCapabilities, getCapabilities, getRevision, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, main, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
构造器详细资料
-
PotentialClassIgnorer
public PotentialClassIgnorer()
-
-
方法详细资料
-
listOptions
Returns an enumeration describing the available options.- 指定者:
listOptions
在接口中OptionHandler
- 返回:
- an enumeration of all the available options.
-
setOptions
Parses a list of options for this object.- 指定者:
setOptions
在接口中OptionHandler
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported
-
getOptions
Gets the current settings of the filter.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- an array of strings suitable for passing to setOptions
-
setInputFormat
Sets the format of the input instances. If the filter is able to determine the output format before seeing any input instances, it does so here. This default implementation clears the output format and output queue, and the new batch flag is set. Overriders should callsuper.setInputFormat(Instances)
- 覆盖:
setInputFormat
在类中Filter
- 参数:
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 inputFormat can't be set successfully
-
getOutputFormat
Gets the format of the output instances. This should only be called after input() or batchFinished() has returned true. The relation name of the output instances should be changed to reflect the action of the filter (eg: add the filter name and options).- 覆盖:
getOutputFormat
在类中Filter
- 返回:
- an Instances object containing the output instance structure only.
- 抛出:
NullPointerException
- if no input structure has been defined (or the output format hasn't been determined yet)
-
ignoreClassTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setIgnoreClass
public void setIgnoreClass(boolean newIgnoreClass) Set the IgnoreClass value. Set this to true if the class index is to be unset before the filter is applied.- 参数:
newIgnoreClass
- The new IgnoreClass value.
-
getIgnoreClass
public boolean getIgnoreClass()Gets the IgnoreClass value. If this to true then the class index is to unset before the filter is applied.- 返回:
- the current IgnoreClass value.
-