public class FilteredAttributeEval extends ASEvaluation implements java.io.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 |
---|---|
java.lang.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.
|
java.lang.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
|
java.lang.String[] |
getOptions()
Gets the current settings of the subset evaluator.
|
java.lang.String |
getRevision()
Returns the revision string.
|
java.lang.String |
globalInfo() |
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(java.lang.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(java.lang.String[] options)
Parses a given list of options.
|
java.lang.String |
toString()
Describe the attribute evaluator
|
clean, forName, makeCopies, postProcess
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class ASEvaluation
Capabilities
public java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(java.lang.String[] options) throws java.lang.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 OptionHandler
options
- the list of options as an array of stringsjava.lang.Exception
- if an option is not supportedpublic java.lang.String[] getOptions()
getOptions
in interface OptionHandler
public java.lang.String attributeEvaluatorTipText()
public void setAttributeEvaluator(ASEvaluation newEvaluator)
newEvaluator
- the attribute evaluator to usepublic ASEvaluation getAttributeEvaluator()
public java.lang.String filterTipText()
public void setFilter(Filter newFilter)
newFilter
- the filter to usepublic Filter getFilter()
public java.lang.String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ASEvaluation
public void buildEvaluator(Instances data) throws java.lang.Exception
buildEvaluator
in class ASEvaluation
data
- set of instances serving as training datajava.lang.Exception
- if the evaluator has not been
generated successfullypublic double evaluateAttribute(int attribute) throws java.lang.Exception
evaluateAttribute
in interface AttributeEvaluator
attribute
- the index of the attribute to be evaluatedjava.lang.Exception
- if the attribute could not be evaluatedpublic java.lang.String toString()
toString
in class java.lang.Object
public static void main(java.lang.String[] args)
args
- the options