public class FilteredAttributeEval extends ASEvaluation implements Serializable, AttributeEvaluator, OptionHandler
-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"
| Constructor and Description |
|---|
FilteredAttributeEval() |
| Modifier and Type | Method and Description |
|---|---|
String |
attributeEvaluatorTipText()
Returns the tip text for this property
|
void |
buildEvaluator(Instances data)
Initializes a filtered attribute evaluator.
|
double |
evaluateAttribute(int attribute)
Evaluates an individual attribute by delegating to the base
evaluator.
|
String |
filterTipText()
Returns the tip text for this property
|
ASEvaluation |
getAttributeEvaluator()
Get the attribute evaluator to use
|
Capabilities |
getCapabilities()
Returns default capabilities of the evaluator.
|
Filter |
getFilter()
Get the filter to use
|
String[] |
getOptions()
Gets the current settings of the subset evaluator.
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo() |
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] args)
Main method for testing this class.
|
void |
setAttributeEvaluator(ASEvaluation newEvaluator)
Set the attribute evaluator to use
|
void |
setFilter(Filter newFilter)
Set the filter to use
|
void |
setOptions(String[] options)
Parses a given list of options.
|
String |
toString()
Describe the attribute evaluator
|
clean, forName, makeCopies, postProcesspublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ASEvaluationCapabilitiespublic String globalInfo()
public Enumeration listOptions()
listOptions in interface OptionHandlerpublic void setOptions(String[] options) throws Exception
-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 in interface OptionHandleroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerpublic String attributeEvaluatorTipText()
public void setAttributeEvaluator(ASEvaluation newEvaluator)
newEvaluator - the attribute evaluator to usepublic ASEvaluation getAttributeEvaluator()
public String filterTipText()
public void setFilter(Filter newFilter)
newFilter - the filter to usepublic Filter getFilter()
public String getRevision()
getRevision in interface RevisionHandlergetRevision in class ASEvaluationpublic void buildEvaluator(Instances data) throws Exception
buildEvaluator in class ASEvaluationdata - set of instances serving as training dataException - if the evaluator has not been
generated successfullypublic double evaluateAttribute(int attribute)
throws Exception
evaluateAttribute in interface AttributeEvaluatorattribute - the index of the attribute to be evaluatedException - if the attribute could not be evaluatedpublic String toString()
public static void main(String[] args)
args - the optionsCopyright © 2021 University of Waikato, Hamilton, NZ. All rights reserved.