public class CfsSubsetEval extends ASEvaluation implements SubsetEvaluator, OptionHandler, TechnicalInformationHandler
@phdthesis{Hall1998,
address = {Hamilton, New Zealand},
author = {M. A. Hall},
school = {University of Waikato},
title = {Correlation-based Feature Subset Selection for Machine Learning},
year = {1998}
}
Valid options are:
-M Treat missing values as a separate value.
-L Don't include locally predictive attributes.
Discretize,
Serialized Form| Constructor and Description |
|---|
CfsSubsetEval()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildEvaluator(Instances data)
Generates a attribute evaluator.
|
void |
clean()
Tells the evaluator that the attribute selection process is complete.
|
double |
evaluateSubset(java.util.BitSet subset)
evaluates a subset of attributes
|
Capabilities |
getCapabilities()
Returns the capabilities of this evaluator.
|
boolean |
getLocallyPredictive()
Return true if including locally predictive attributes
|
boolean |
getMissingSeparate()
Return true is missing is treated as a separate value
|
java.lang.String[] |
getOptions()
Gets the current settings of CfsSubsetEval
|
java.lang.String |
getRevision()
Returns the revision string.
|
TechnicalInformation |
getTechnicalInformation()
Returns an instance of a TechnicalInformation object, containing detailed
information about the technical background of this class, e.g., paper
reference or book this class is based on.
|
java.lang.String |
globalInfo()
Returns a string describing this attribute evaluator
|
java.util.Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
java.lang.String |
locallyPredictiveTipText()
Returns the tip text for this property
|
static void |
main(java.lang.String[] args)
Main method for testing this class.
|
java.lang.String |
missingSeparateTipText()
Returns the tip text for this property
|
int[] |
postProcess(int[] attributeSet)
Calls locallyPredictive in order to include locally predictive attributes
(if requested).
|
void |
setLocallyPredictive(boolean b)
Include locally predictive attributes
|
void |
setMissingSeparate(boolean b)
Treat missing as a separate value
|
void |
setOptions(java.lang.String[] options)
Parses and sets a given list of options.
|
java.lang.String |
toString()
returns a string describing CFS
|
forName, makeCopiespublic java.lang.String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation in interface TechnicalInformationHandlerpublic java.util.Enumeration listOptions()
listOptions in interface OptionHandlerpublic void setOptions(java.lang.String[] options)
throws java.lang.Exception
-M Treat missing values as a separate value.
-L Don't include locally predictive attributes.
setOptions in interface OptionHandleroptions - the list of options as an array of stringsjava.lang.Exception - if an option is not supportedpublic java.lang.String locallyPredictiveTipText()
public void setLocallyPredictive(boolean b)
b - true or falsepublic boolean getLocallyPredictive()
public java.lang.String missingSeparateTipText()
public void setMissingSeparate(boolean b)
b - true or falsepublic boolean getMissingSeparate()
public java.lang.String[] getOptions()
getOptions in interface OptionHandlerpublic Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ASEvaluationCapabilitiespublic 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 int[] postProcess(int[] attributeSet)
throws java.lang.Exception
postProcess in class ASEvaluationattributeSet - the set of attributes found by the searchjava.lang.Exception - if postprocessing fails for some reasonpublic void clean()
ASEvaluationclean in class ASEvaluationpublic java.lang.String getRevision()
getRevision in interface RevisionHandlergetRevision in class ASEvaluationpublic static void main(java.lang.String[] args)
args - the options