public class FilteredSubsetEval extends ASEvaluation implements java.io.Serializable, SubsetEvaluator, OptionHandler
-W <evaluator specification> Full name of base evaluator to use, followed by evaluator options. eg: "weka.attributeSelection.CfsSubsetEval -L"
-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 |
|---|
FilteredSubsetEval() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildEvaluator(Instances data)
Initializes a filtered attribute evaluator.
|
double |
evaluateSubset(java.util.BitSet subset)
evaluates a subset of attributes
|
java.lang.String |
filterTipText()
Returns the tip text for this property
|
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.
|
ASEvaluation |
getSubsetEvaluator()
Get the subset evaluator to use
|
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 |
setFilter(Filter newFilter)
Set the filter to use
|
void |
setOptions(java.lang.String[] options)
Parses a given list of options.
|
void |
setSubsetEvaluator(ASEvaluation newEvaluator)
Set the subset evaluator to use
|
java.lang.String |
subsetEvaluatorTipText()
Returns the tip text for this property
|
java.lang.String |
toString()
Describe the attribute evaluator
|
clean, forName, makeCopies, postProcesspublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ASEvaluationCapabilitiespublic java.lang.String globalInfo()
public java.util.Enumeration listOptions()
listOptions in interface OptionHandlerpublic 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.CfsSubsetEval -L"
-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 stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic java.lang.String subsetEvaluatorTipText()
public void setSubsetEvaluator(ASEvaluation newEvaluator)
newEvaluator - the subset evaluator to usepublic ASEvaluation getSubsetEvaluator()
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 RevisionHandlergetRevision in class ASEvaluationpublic void buildEvaluator(Instances data) throws java.lang.Exception
buildEvaluator in class ASEvaluationdata - set of instances serving as training datajava.lang.Exception - if the evaluator has not been
generated successfullypublic double evaluateSubset(java.util.BitSet subset)
throws java.lang.Exception
evaluateSubset in interface SubsetEvaluatorsubset - a bitset representing the attribute subset to be
evaluatedjava.lang.Exception - if the subset could not be evaluatedpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void main(java.lang.String[] args)
args - the options