public class FilteredSubsetEval extends ASEvaluation implements 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"
| Modifier and Type | Field and Description |
|---|---|
protected SubsetEvaluator |
m_evaluator
Base evaluator
|
protected Filter |
m_filter
Filter
|
protected Instances |
m_filteredInstances
Filtered instances structure
|
| Constructor and Description |
|---|
FilteredSubsetEval() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildEvaluator(Instances data)
Initializes a filtered attribute evaluator.
|
double |
evaluateSubset(BitSet subset)
evaluates a subset of attributes
|
String |
filterTipText()
Returns the tip text for this property
|
Capabilities |
getCapabilities()
Returns default capabilities of the evaluator.
|
protected String |
getEvaluatorSpec()
Get the evaluator + options as a string
|
Filter |
getFilter()
Get the filter to use
|
protected String |
getFilterSpec()
Get the filter + options as a string
|
String[] |
getOptions()
Gets the current settings of the subset evaluator.
|
String |
getRevision()
Returns the revision string.
|
ASEvaluation |
getSubsetEvaluator()
Get the subset evaluator to use
|
String |
globalInfo() |
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] args)
Main method for testing this class.
|
void |
setFilter(Filter newFilter)
Set the filter to use
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setSubsetEvaluator(ASEvaluation newEvaluator)
Set the subset evaluator to use
|
String |
subsetEvaluatorTipText()
Returns the tip text for this property
|
String |
toString()
Describe the attribute evaluator
|
forName, makeCopies, postProcess, runEvaluatorprotected SubsetEvaluator m_evaluator
protected Filter m_filter
protected Instances m_filteredInstances
public 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.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 stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerprotected String getEvaluatorSpec()
public String subsetEvaluatorTipText()
public void setSubsetEvaluator(ASEvaluation newEvaluator)
newEvaluator - the subset evaluator to usepublic ASEvaluation getSubsetEvaluator()
protected String getFilterSpec()
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 evaluateSubset(BitSet subset) throws Exception
evaluateSubset in interface SubsetEvaluatorsubset - a bitset representing the attribute subset to be
evaluatedException - if the subset could not be evaluatedpublic String toString()
public static void main(String[] args)
args - the optionsCopyright © 2015 University of Waikato, Hamilton, NZ. All rights reserved.