public class CorrelationAttributeEval extends ASEvaluation implements AttributeEvaluator, OptionHandler
-D Output detailed info for nominal attributes
| Constructor and Description |
|---|
CorrelationAttributeEval() |
| Modifier and Type | Method and Description |
|---|---|
void |
buildEvaluator(Instances data)
Initializes an information gain attribute evaluator.
|
double |
evaluateAttribute(int attribute)
Evaluates an individual attribute by measuring the correlation (Pearson's)
between it and the class.
|
Capabilities |
getCapabilities()
Returns the capabilities of this evaluator.
|
String[] |
getOptions()
Gets the current settings of WrapperSubsetEval.
|
boolean |
getOutputDetailedInfo()
Get whether to output per-value correlation for nominal attributes
|
String |
getRevision()
Returns the revision string.
|
String |
globalInfo()
Returns a string describing this attribute evaluator
|
Enumeration<Option> |
listOptions()
Returns an enumeration describing the available options.
|
static void |
main(String[] args)
Main method for testing this class.
|
String |
outputDetailedInfoTipText()
Returns the tip text for this property
|
void |
setOptions(String[] options)
Parses a given list of options.
|
void |
setOutputDetailedInfo(boolean d)
Set whether to output per-value correlation for nominal attributes
|
String |
toString()
Describe the attribute evaluator
|
doNotCheckCapabilitiesTipText, forName, getDoNotCheckCapabilities, makeCopies, postProcess, runEvaluator, setDoNotCheckCapabilitiespublic String globalInfo()
public Capabilities getCapabilities()
getCapabilities in interface CapabilitiesHandlergetCapabilities in class ASEvaluationCapabilitiespublic Enumeration<Option> listOptions()
listOptions in interface OptionHandlerpublic void setOptions(String[] options) throws Exception
-D Output detailed info for nominal attributes
setOptions in interface OptionHandleroptions - the list of options as an array of stringsException - if an option is not supportedpublic String[] getOptions()
getOptions in interface OptionHandlerpublic String outputDetailedInfoTipText()
public void setOutputDetailedInfo(boolean d)
d - true if detailed (per-value) correlation is to be output for
nominal attributespublic boolean getOutputDetailedInfo()
public double evaluateAttribute(int attribute)
throws Exception
evaluateAttribute in interface AttributeEvaluatorattribute - the index of the attribute to be evaluatedException - if the attribute could not be evaluatedpublic String toString()
public 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 String getRevision()
getRevision in interface RevisionHandlergetRevision in class ASEvaluationpublic static void main(String[] args)
args - the optionsCopyright © 2014 University of Waikato, Hamilton, NZ. All Rights Reserved.