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 FormConstructor and Description |
---|
CfsSubsetEval()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildEvaluator(Instances data)
Generates a attribute evaluator.
|
double |
evaluateSubset(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
|
String[] |
getOptions()
Gets the current settings of CfsSubsetEval
|
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.
|
String |
globalInfo()
Returns a string describing this attribute evaluator
|
Enumeration |
listOptions()
Returns an enumeration describing the available options.
|
String |
locallyPredictiveTipText()
Returns the tip text for this property
|
static void |
main(String[] args)
Main method for testing this class.
|
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(String[] options)
Parses and sets a given list of options.
|
String |
toString()
returns a string describing CFS
|
forName, makeCopies, runEvaluator
public String globalInfo()
public TechnicalInformation getTechnicalInformation()
getTechnicalInformation
in interface TechnicalInformationHandler
public Enumeration listOptions()
listOptions
in interface OptionHandler
public void setOptions(String[] options) throws Exception
-M Treat missing values as a separate value.
-L Don't include locally predictive attributes.
setOptions
in interface OptionHandler
options
- the list of options as an array of stringsException
- if an option is not supportedpublic String locallyPredictiveTipText()
public void setLocallyPredictive(boolean b)
b
- true or falsepublic boolean getLocallyPredictive()
public String missingSeparateTipText()
public void setMissingSeparate(boolean b)
b
- true or falsepublic boolean getMissingSeparate()
public String[] getOptions()
getOptions
in interface OptionHandler
public Capabilities getCapabilities()
getCapabilities
in interface CapabilitiesHandler
getCapabilities
in class ASEvaluation
Capabilities
public void buildEvaluator(Instances data) throws Exception
buildEvaluator
in class ASEvaluation
data
- set of instances serving as training dataException
- if the evaluator has not been
generated successfullypublic double evaluateSubset(BitSet subset) throws Exception
evaluateSubset
in interface SubsetEvaluator
subset
- a bitset representing the attribute subset to be
evaluatedException
- if the subset could not be evaluatedpublic String toString()
public int[] postProcess(int[] attributeSet) throws Exception
postProcess
in class ASEvaluation
attributeSet
- the set of attributes found by the searchException
- if postprocessing fails for some reasonpublic String getRevision()
getRevision
in interface RevisionHandler
getRevision
in class ASEvaluation
public static void main(String[] args)
args
- the optionsCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.