程序包 weka.filters
类 SimpleFilter
java.lang.Object
weka.filters.Filter
weka.filters.SimpleFilter
- 所有已实现的接口:
Serializable
,CapabilitiesHandler
,OptionHandler
,RevisionHandler
- 直接已知子类:
SimpleBatchFilter
,SimpleStreamFilter
This filter contains common behavior of the SimpleBatchFilter and the
SimpleStreamFilter.
- 版本:
- $Revision: 1.4 $
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyboolean
getDebug()
Returns the current debugging mode state.String[]
Gets the current settings of the filter.abstract String
Returns a string describing this classifier.Returns an enumeration describing the available options.void
setDebug
(boolean value) Sets the debugging modeboolean
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, getOutputFormat, getRevision, input, isFirstBatchDone, isNewBatch, isOutputFormatDefined, main, makeCopies, makeCopy, numPendingOutput, output, outputPeek, toString, useFilter, wekaStaticWrapper
-
构造器详细资料
-
SimpleFilter
public SimpleFilter()
-
-
方法详细资料
-
globalInfo
Returns a string describing this classifier.- 返回:
- a description of the classifier suitable for displaying in the explorer/experimenter gui
-
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. Also resets the state of the filter (this reset doesn't affect the options).- 指定者:
setOptions
在接口中OptionHandler
- 参数:
options
- the list of options as an array of strings- 抛出:
Exception
- if an option is not supported- 另请参阅:
-
reset()
-
getOptions
Gets the current settings of the filter.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- an array of strings suitable for passing to setOptions
-
setDebug
public void setDebug(boolean value) Sets the debugging mode- 参数:
value
- if true, debugging information is output
-
getDebug
public boolean getDebug()Returns the current debugging mode state.- 返回:
- true if debugging mode is on
-
debugTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setInputFormat
Sets the format of the input instances. Also resets the state of the filter (this reset doesn't affect the options).- 覆盖:
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- 另请参阅:
-
reset()
-