类 FilteredAttributeEval
java.lang.Object
weka.attributeSelection.ASEvaluation
weka.attributeSelection.FilteredAttributeEval
public class FilteredAttributeEval
extends ASEvaluation
implements Serializable, AttributeEvaluator, OptionHandler
Class for running an arbitrary attribute evaluator on data that has been passed through an
arbitrary filter (note: filters that alter the order or number of attributes are not allowed).
Like the evaluator, the structure of the filter is based exclusively on the training data.
Valid options are:
-W <evaluator specification> Full name of base evaluator to use, followed by evaluator options. eg: "weka.attributeSelection.InfoGainAttributeEval -M"
-F <filter specification> Full class name of filter to use, followed by filter options. eg: "weka.filters.supervised.instance.SpreadSubsample -M 1"
- 版本:
- $Revision: 5562 $
- 作者:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the tip text for this propertyvoid
buildEvaluator
(Instances data) Initializes a filtered attribute evaluator.double
evaluateAttribute
(int attribute) Evaluates an individual attribute by delegating to the base evaluator.Returns the tip text for this propertyGet the attribute evaluator to useReturns default capabilities of the evaluator.Get the filter to useString[]
Gets the current settings of the subset evaluator.Returns the revision string.Returns an enumeration describing the available options.static void
Main method for testing this class.void
setAttributeEvaluator
(ASEvaluation newEvaluator) Set the attribute evaluator to usevoid
Set the filter to usevoid
setOptions
(String[] options) Parses a given list of options.toString()
Describe the attribute evaluator从类继承的方法 weka.attributeSelection.ASEvaluation
clean, forName, makeCopies, postProcess
-
构造器详细资料
-
FilteredAttributeEval
public FilteredAttributeEval()
-
-
方法详细资料
-
getCapabilities
Returns default capabilities of the evaluator.- 指定者:
getCapabilities
在接口中CapabilitiesHandler
- 覆盖:
getCapabilities
在类中ASEvaluation
- 返回:
- the capabilities of this evaluator.
- 另请参阅:
-
globalInfo
- 返回:
- a description of the evaluator 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 given list of options. Valid options are:-W <evaluator specification> Full name of base evaluator to use, followed by evaluator options. eg: "weka.attributeSelection.InfoGainAttributeEval -M"
-F <filter specification> Full class name of filter to use, followed by filter options. eg: "weka.filters.supervised.instance.SpreadSubsample -M 1"
- 指定者:
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 subset evaluator.- 指定者:
getOptions
在接口中OptionHandler
- 返回:
- an array of strings suitable for passing to setOptions
-
attributeEvaluatorTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setAttributeEvaluator
Set the attribute evaluator to use- 参数:
newEvaluator
- the attribute evaluator to use
-
getAttributeEvaluator
Get the attribute evaluator to use- 返回:
- the attribute evaluator to use
-
filterTipText
Returns the tip text for this property- 返回:
- tip text for this property suitable for displaying in the explorer/experimenter gui
-
setFilter
Set the filter to use- 参数:
newFilter
- the filter to use
-
getFilter
Get the filter to use- 返回:
- the filter to use
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 覆盖:
getRevision
在类中ASEvaluation
- 返回:
- the revision
-
buildEvaluator
Initializes a filtered attribute evaluator.- 指定者:
buildEvaluator
在类中ASEvaluation
- 参数:
data
- set of instances serving as training data- 抛出:
Exception
- if the evaluator has not been generated successfully
-
evaluateAttribute
Evaluates an individual attribute by delegating to the base evaluator.- 指定者:
evaluateAttribute
在接口中AttributeEvaluator
- 参数:
attribute
- the index of the attribute to be evaluated- 返回:
- the merit of the attribute according to the base evaluator
- 抛出:
Exception
- if the attribute could not be evaluated
-
toString
Describe the attribute evaluator -
main
Main method for testing this class.- 参数:
args
- the options
-